#9D851F#9D851F
#9D851F is a light, moderate yellow. Relative luminance 0.240; OKLCH L 62.1% C 0.118 H 94.9°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).
Color values
| HEX | #9D851F |
|---|---|
| RGB | rgb(157, 133, 31) |
| HSL | hsl(49, 67%, 37%) |
| HSV | hsv(49, 80%, 62%) |
| CMYK | cmyk(0%, 15.3%, 80.3%, 38.4%) |
| CIE-LAB | lab(56.13, -1.42, 53.96) |
| CIE-LCH | lch(56.13, 53.98, 91.51°) |
| OKLab | oklab(62.14% -0.01 0.1172) |
| OKLCH | oklch(62.14% 0.118 94.9) |
| XYZ | xyz(22.5407, 24.0434, 4.7496) |
| Luminance | 0.2404 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Diarrhea
#9F8303
ΔE00 2.04
Dark Mustard
#A88905
ΔE00 3.34
Baby Poop
#937C00
ΔE00 3.63
Yellowish Brown
#9B7A01
ΔE00 4.49
Yellowy Brown
#AE8B0C
ΔE00 4.56
Baby Poo
#AB9004
ΔE00 4.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9D851F #1F379D
analogous
#9D461F #9D851F #769D1F
triadic
#9D851F #1F9D85 #851F9D
tetradic
#9D851F #1F9D46 #1F379D #9D1F76
square
#9D851F #1F9D46 #1F379D #9D1F76
split-complementary
#9D851F #1F769D #461F9D
monochromatic
#372E0B #6A5A15 #9D851F #D0B029 #DEC558
Accessibility & contrast
On white
3.62
#9D851F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.81
#9D851F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9D851F
5.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9D851F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9D851F | 1.00 | 3.62 | 5.81 | 5.81 |
| #FFFFFF | 3.62 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.81 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.81 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#948206
Deuteranopia (green-blind)
#9A8A26
Tritanopia (blue-blind)
#AA7A72
Achromatopsia (no color)
#878787
Design tokens & code
CSS
--color: #9d851f; /* rgb */ color: rgb(157, 133, 31); /* oklch */ color: oklch(62.1% 0.118 94.9);
Tailwind
colors: {
custom: {
50: '#bea864',
500: '#9d851f',
950: '#000000',
},
}SCSS
$custom: #9d851f; $custom-light: #bea864; $custom-dark: #000000;
JSON
{
"hex": "#9d851f",
"rgb": {
"r": 157,
"g": 133,
"b": 31
},
"hsl": {
"h": 48.571,
"s": 67.021,
"l": 36.863
},
"oklch": {
"l": 0.6214,
"c": 0.11758,
"h": 94.9
},
"luminance": 0.24042
}Semantic roles & 50–950 ramp
primary
#9D851F
secondary
#566AC2
accent
#5FEA3E
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A