CSS named colour
Olive Drab
#6b8e23
A CSS named colour: olivedrab is valid anywhere a colour is expected.
- RGB
- rgb(107 142 35)
- HSL
- 80°, 60%, 35%
- OKLCh
- 59.9% 0.137 126.3
Olive Drab in every format
Web & CSSThe everyday formats for stylesheets and design tools.
| Hex | #6b8e23 | |
|---|---|---|
| RGB | rgb(107 142 35) | |
| RGB legacy | rgb(107, 142, 35) | |
| RGB percent | rgb(41.96% 55.69% 13.73%) | |
| HSL | hsl(79.6 60.5% 34.7%) | |
| HSL legacy | hsl(79.6, 60.5%, 34.7%) | |
| HSV / HSB | hsv(79.6, 75.4%, 55.7%) | |
| HWB | hwb(79.6 13.7% 44.3%) | |
| Nearest name | olivedrab | |
| CMYK | cmyk(24.6%, 0%, 75.4%, 44.3%)Naive conversion. Real print work needs an ICC profile. |
Perceptual & wide gamutModern CSS colour spaces for uniform scales and P3 displays.
| OKLCh | oklch(59.948% 0.13738 126.322)Modern CSS colour space for even palettes — better than HSL when building scales. | |
|---|---|---|
| OKLab | oklab(59.948% -0.08138 0.11069) | |
| CIE LCh | lch(54.829% 54.813 116.612) | |
| CIE Lab | lab(54.829% -24.553 49.006) | |
| Display P3 | color(display-p3 0.4479 0.553 0.2133) | |
| Rec. 2020 | color(rec2020 0.4114 0.4993 0.1626) | |
| srgb-linear | color(srgb-linear 0.147 0.2705 0.0168)Light-linear sRGB — the same numbers a shader wants for maths. | |
| CIE XYZ (D65) | color(xyz-d65 0.1604 0.2259 0.0511) |
ShadersGLSL, HLSL and WGSL vectors in both encoded and linear form.
| GLSL vec3 — sRGB | vec3(0.42, 0.557, 0.137)Encoded values. Use when writing straight to the framebuffer. | |
|---|---|---|
| GLSL vec3 — linear | vec3(0.147, 0.27, 0.017)Light-linear values. Use for lighting, blending and mixing. | |
| GLSL vec4 — sRGB | vec4(0.42, 0.557, 0.137, 1.0) | |
| GLSL vec4 — linear | vec4(0.147, 0.27, 0.017, 1.0) | |
| GLSL ivec3 | ivec3(107, 142, 35) | |
| HLSL float3 — sRGB | float3(0.42, 0.557, 0.137) | |
| HLSL float3 — linear | float3(0.147, 0.27, 0.017) | |
| HLSL float4 — sRGB | float4(0.42, 0.557, 0.137, 1.0) | |
| HLSL half4 — sRGB | half4(0.42, 0.557, 0.137, 1.0) | |
| WGSL vec3f — sRGB | vec3f(0.42, 0.557, 0.137) | |
| WGSL vec4f — sRGB | vec4f(0.42, 0.557, 0.137, 1.0) | |
| WGSL vec3<f32> — linear | vec3<f32>(0.147, 0.27, 0.017) |
Engines & appsConstructors for Unity, Unreal, Godot, Flutter, SwiftUI and Android.
| Unity Color | new Color(0.42f, 0.557f, 0.137f, 1.0f)Color for everyday scripting (0–1). Color32 when you need whole numbers from 0 to 255. | |
|---|---|---|
| Unity Color32 | new Color32(107, 142, 35, 255) | |
| Unreal FLinearColor | FLinearColor(0.147f, 0.2705f, 0.0168f, 1.0f)FLinearColor for materials and lighting. FColor when you need whole numbers from 0 to 255. | |
| Unreal FColor | FColor(107, 142, 35, 255)Whole numbers from 0 to 255 — use when an API asks for FColor, not FLinearColor. | |
| Godot Color | Color(0.42, 0.557, 0.137, 1) | |
| Flutter Color | Color(0xFF6B8E23)Packed ARGB, so alpha comes first. | |
| Android Color | Color.rgb(107, 142, 35) | |
| SwiftUI Color | Color(red: 0.42, green: 0.557, blue: 0.137) | |
| UIKit UIColor | UIColor(red: 0.42, green: 0.557, blue: 0.137, alpha: 1) |
Raw valuesPacked integers and plain arrays.
| 0x hex | 0x6B8E23 | |
|---|---|---|
| 0x hex (ARGB) | 0xFF6B8E23 | |
| Array 0–1 | [0.42, 0.557, 0.137] | |
| Array 0–255 | [107, 142, 35] | |
| Decimal integer | 7048739 |
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 Drab on white | 3.81:1 | AA Large | Lc 65 | Headings and large text |
| Olive Drab on black | 5.52:1 | AA | Lc 36 | Non-text elements only |
Olive Drab text on a white background
Olive Drab text on a black background
White text on Olive Drab
Black text on Olive Drab
Tonal scale
Hue held fixed while lightness walks OKLCh, ready to use as a design system ramp.
- 50#e6ffb9
- 100#dbfbac
- 200#c9eb96
- 300#b1d47a
- 400#94b856
- 500#769a31
- 600#5e7f13
- 700#496600
- 800#375200
- 900#294100
- 950#152500
Tints and shades
Mixed perceptually toward white and black, so the steps feel evenly spaced.
- Tint 1#82a14f
- Tint 2#9ab374
- Tint 3#b2c696
- Tint 4#cbd9b9
- Tint 5#e5ecdc
- Shade 1#526e19
- Shade 2#3b5010
- Shade 3#253407
- Shade 4#111902
- Shade 5#020400
Colours that work with Olive Drab
Complementary, triadic and analogous partners, rotated in OKLCh so they keep the same apparent brightness.
- #9568c0
- #2886cd
- #c25873
- #987e00
- #1a985d
Closest CSS names
olivedrabexact matcholiveΔEok 0.044forestgreenΔEok 0.068seagreenΔEok 0.073greenΔEok 0.099mediumseagreenΔEok 0.110