CSS named colour
Dark Khaki
#bdb76b
A CSS named colour: darkkhaki is valid anywhere a colour is expected.
- RGB
- rgb(189 183 107)
- HSL
- 56°, 38%, 58%
- OKLCh
- 76.7% 0.098 104.5
Dark Khaki in every format
Web & CSSThe everyday formats for stylesheets and design tools.
| Hex | #bdb76b | |
|---|---|---|
| RGB | rgb(189 183 107) | |
| RGB legacy | rgb(189, 183, 107) | |
| RGB percent | rgb(74.12% 71.76% 41.96%) | |
| HSL | hsl(55.6 38.3% 58%) | |
| HSL legacy | hsl(55.6, 38.3%, 58%) | |
| HSV / HSB | hsv(55.6, 43.4%, 74.1%) | |
| HWB | hwb(55.6 42% 25.9%) | |
| Nearest name | darkkhaki | |
| CMYK | cmyk(0%, 3.2%, 43.4%, 25.9%)Naive conversion. Real print work needs an ICC profile. |
Perceptual & wide gamutModern CSS colour spaces for uniform scales and P3 displays.
| OKLCh | oklch(76.747% 0.09804 104.515)Modern CSS colour space for even palettes — better than HSL when building scales. | |
|---|---|---|
| OKLab | oklab(76.747% -0.02457 0.09491) | |
| CIE LCh | lch(73.649% 39.707 98.423) | |
| CIE Lab | lab(73.649% -5.816 39.278) | |
| Display P3 | color(display-p3 0.7371 0.7184 0.4576) | |
| Rec. 2020 | color(rec2020 0.6919 0.685 0.411) | |
| srgb-linear | color(srgb-linear 0.5089 0.4735 0.147)Light-linear sRGB — the same numbers a shader wants for maths. | |
| CIE XYZ (D65) | color(xyz-d65 0.4057 0.4575 0.206) |
ShadersGLSL, HLSL and WGSL vectors in both encoded and linear form.
| GLSL vec3 — sRGB | vec3(0.741, 0.718, 0.42)Encoded values. Use when writing straight to the framebuffer. | |
|---|---|---|
| GLSL vec3 — linear | vec3(0.509, 0.474, 0.147)Light-linear values. Use for lighting, blending and mixing. | |
| GLSL vec4 — sRGB | vec4(0.741, 0.718, 0.42, 1.0) | |
| GLSL vec4 — linear | vec4(0.509, 0.474, 0.147, 1.0) | |
| GLSL ivec3 | ivec3(189, 183, 107) | |
| HLSL float3 — sRGB | float3(0.741, 0.718, 0.42) | |
| HLSL float3 — linear | float3(0.509, 0.474, 0.147) | |
| HLSL float4 — sRGB | float4(0.741, 0.718, 0.42, 1.0) | |
| HLSL half4 — sRGB | half4(0.741, 0.718, 0.42, 1.0) | |
| WGSL vec3f — sRGB | vec3f(0.741, 0.718, 0.42) | |
| WGSL vec4f — sRGB | vec4f(0.741, 0.718, 0.42, 1.0) | |
| WGSL vec3<f32> — linear | vec3<f32>(0.509, 0.474, 0.147) |
Engines & appsConstructors for Unity, Unreal, Godot, Flutter, SwiftUI and Android.
| Unity Color | new Color(0.741f, 0.718f, 0.42f, 1.0f)Color for everyday scripting (0–1). Color32 when you need whole numbers from 0 to 255. | |
|---|---|---|
| Unity Color32 | new Color32(189, 183, 107, 255) | |
| Unreal FLinearColor | FLinearColor(0.5089f, 0.4735f, 0.147f, 1.0f)FLinearColor for materials and lighting. FColor when you need whole numbers from 0 to 255. | |
| Unreal FColor | FColor(189, 183, 107, 255)Whole numbers from 0 to 255 — use when an API asks for FColor, not FLinearColor. | |
| Godot Color | Color(0.741, 0.718, 0.42, 1) | |
| Flutter Color | Color(0xFFBDB76B)Packed ARGB, so alpha comes first. | |
| Android Color | Color.rgb(189, 183, 107) | |
| SwiftUI Color | Color(red: 0.741, green: 0.718, blue: 0.42) | |
| UIKit UIColor | UIColor(red: 0.741, green: 0.718, blue: 0.42, alpha: 1) |
Raw valuesPacked integers and plain arrays.
| 0x hex | 0xBDB76B | |
|---|---|---|
| 0x hex (ARGB) | 0xFFBDB76B | |
| Array 0–1 | [0.741, 0.718, 0.42] | |
| Array 0–255 | [189, 183, 107] | |
| Decimal integer | 12433259 |
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 |
|---|---|---|---|---|
| Dark Khaki on white | 2.07:1 | Fail | Lc 40 | Non-text elements only |
| Dark Khaki on black | 10.15:1 | AAA | Lc 62 | Headings and large text |
Dark Khaki text on a white background
Dark Khaki text on a black background
White text on Dark Khaki
Black text on Dark Khaki
Tonal scale
Hue held fixed while lightness walks OKLCh, ready to use as a design system ramp.
- 50#fffbc2
- 100#f5f1b5
- 200#e4e0a0
- 300#cec985
- 400#b2ad64
- 500#958e43
- 600#7a742a
- 700#635d15
- 800#4f4901
- 900#3f3900
- 950#252000
Tints and shades
Mixed perceptually toward white and black, so the steps feel evenly spaced.
- Tint 1#c8c385
- Tint 2#d2cf9e
- Tint 3#dddbb6
- Tint 4#e8e7ce
- Tint 5#f4f3e7
- Shade 1#948f52
- Shade 2#6c693b
- Shade 3#474525
- Shade 4#252411
- Shade 5#080702
Colours that work with Dark Khaki
Complementary, triadic and analogous partners, rotated in OKLCh so they keep the same apparent brightness.
- #acabf0
- #67c1e2
- #e19ac2
- #d9aa6a
- #99c282
Closest CSS names
darkkhakiexact matchtanΔEok 0.056burlywoodΔEok 0.063darkseagreenΔEok 0.066goldenrodΔEok 0.067sandybrownΔEok 0.091