CSS named colour
Olive
#808000
A CSS named colour: olive is valid anywhere a colour is expected.
- RGB
- rgb(128 128 0)
- HSL
- 60°, 100%, 25%
- OKLCh
- 58.1% 0.127 109.8
Olive in every format
Web & CSSThe everyday formats for stylesheets and design tools.
| Hex | #808000 | |
|---|---|---|
| RGB | rgb(128 128 0) | |
| RGB legacy | rgb(128, 128, 0) | |
| RGB percent | rgb(50.2% 50.2% 0%) | |
| HSL | hsl(60 100% 25.1%) | |
| HSL legacy | hsl(60, 100%, 25.1%) | |
| HSV / HSB | hsv(60, 100%, 50.2%) | |
| HWB | hwb(60 0% 49.8%) | |
| Nearest name | olive | |
| CMYK | cmyk(0%, 0%, 100%, 49.8%)Naive conversion. Real print work needs an ICC profile. |
Perceptual & wide gamutModern CSS colour spaces for uniform scales and P3 displays.
| OKLCh | oklch(58.066% 0.12658 109.769)Modern CSS colour space for even palettes — better than HSL when building scales. | |
|---|---|---|
| OKLab | oklab(58.066% -0.04281 0.11912) | |
| CIE LCh | lch(52.15% 56.815 99.572) | |
| CIE Lab | lab(52.15% -9.448 56.024) | |
| Display P3 | color(display-p3 0.502 0.502 0.1487) | |
| Rec. 2020 | color(rec2020 0.4413 0.4493 0.1002) | |
| srgb-linear | color(srgb-linear 0.2159 0.2159 0)Light-linear sRGB — the same numbers a shader wants for maths. | |
| CIE XYZ (D65) | color(xyz-d65 0.1662 0.2003 0.0299) |
ShadersGLSL, HLSL and WGSL vectors in both encoded and linear form.
| GLSL vec3 — sRGB | vec3(0.502, 0.502, 0.0)Encoded values. Use when writing straight to the framebuffer. | |
|---|---|---|
| GLSL vec3 — linear | vec3(0.216, 0.216, 0.0)Light-linear values. Use for lighting, blending and mixing. | |
| GLSL vec4 — sRGB | vec4(0.502, 0.502, 0.0, 1.0) | |
| GLSL vec4 — linear | vec4(0.216, 0.216, 0.0, 1.0) | |
| GLSL ivec3 | ivec3(128, 128, 0) | |
| HLSL float3 — sRGB | float3(0.502, 0.502, 0.0) | |
| HLSL float3 — linear | float3(0.216, 0.216, 0.0) | |
| HLSL float4 — sRGB | float4(0.502, 0.502, 0.0, 1.0) | |
| HLSL half4 — sRGB | half4(0.502, 0.502, 0.0, 1.0) | |
| WGSL vec3f — sRGB | vec3f(0.502, 0.502, 0.0) | |
| WGSL vec4f — sRGB | vec4f(0.502, 0.502, 0.0, 1.0) | |
| WGSL vec3<f32> — linear | vec3<f32>(0.216, 0.216, 0.0) |
Engines & appsConstructors for Unity, Unreal, Godot, Flutter, SwiftUI and Android.
| Unity Color | new Color(0.502f, 0.502f, 0.0f, 1.0f)Color for everyday scripting (0–1). Color32 when you need whole numbers from 0 to 255. | |
|---|---|---|
| Unity Color32 | new Color32(128, 128, 0, 255) | |
| Unreal FLinearColor | FLinearColor(0.2159f, 0.2159f, 0.0f, 1.0f)FLinearColor for materials and lighting. FColor when you need whole numbers from 0 to 255. | |
| Unreal FColor | FColor(128, 128, 0, 255)Whole numbers from 0 to 255 — use when an API asks for FColor, not FLinearColor. | |
| Godot Color | Color(0.502, 0.502, 0, 1) | |
| Flutter Color | Color(0xFF808000)Packed ARGB, so alpha comes first. | |
| Android Color | Color.rgb(128, 128, 0) | |
| SwiftUI Color | Color(red: 0.502, green: 0.502, blue: 0) | |
| UIKit UIColor | UIColor(red: 0.502, green: 0.502, blue: 0, alpha: 1) |
Raw valuesPacked integers and plain arrays.
| 0x hex | 0x808000 | |
|---|---|---|
| 0x hex (ARGB) | 0xFF808000 | |
| Array 0–1 | [0.502, 0.502, 0] | |
| Array 0–255 | [128, 128, 0] | |
| Decimal integer | 8421376 |
Contrast and accessibility
WCAG 2 ratios are what audits and legislation reference. APCA is shown alongside because WCAG 2 is known to misjudge mid-tone backgrounds, and it is the basis of the WCAG 3 draft.
| Pairing | WCAG 2 ratio | Level | APCA | Suitable for |
|---|---|---|---|---|
| Olive on white | 4.20:1 | AA Large | Lc 69 | Headings and large text |
| Olive on black | 5.01:1 | AA | Lc 33 | Non-text elements only |
Olive text on a white background
Olive text on a black background
White text on Olive
Black text on Olive
Tonal scale
Hue held fixed while lightness walks OKLCh, ready to use as a design system ramp.
- 50#fbfeb3
- 100#f1f4a6
- 200#e1e38f
- 300#cacc72
- 400#aeb04d
- 500#919123
- 600#777700
- 700#605f00
- 800#4c4b00
- 900#3c3b00
- 950#222100
Tints and shades
Mixed perceptually toward white and black, so the steps feel evenly spaced.
- Tint 1#949542
- Tint 2#a8aa6a
- Tint 3#bdbf90
- Tint 4#d2d4b5
- Tint 5#e8e9da
- Shade 1#636300
- Shade 2#484800
- Shade 3#2e2e00
- Shade 4#161600
- Shade 5#030300
Colours that work with Olive
Complementary, triadic and analogous partners, rotated in OKLCh so they keep the same apparent brightness.
- #7a6cc0
- #0087b6
- #b05885
- #a17000
- #4f8c40
Closest CSS names
oliveexact matcholivedrabΔEok 0.044seagreenΔEok 0.095darkgoldenrodΔEok 0.095forestgreenΔEok 0.096darkolivegreenΔEok 0.098