#9D811B#9D811B
#9D811B is a mid, moderate yellow. Relative luminance 0.229; OKLCH L 61.3% C 0.117 H 92.2°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).
Color values
| HEX | #9D811B |
|---|---|
| RGB | rgb(157, 129, 27) |
| HSL | hsl(47, 71%, 36%) |
| HSV | hsv(47, 83%, 62%) |
| CMYK | cmyk(0%, 17.8%, 82.8%, 38.4%) |
| CIE-LAB | lab(55.02, 0.66, 54.29) |
| CIE-LCH | lch(55.02, 54.29, 89.30°) |
| OKLab | oklab(61.26% -0.0045 0.117) |
| OKLCH | oklch(61.26% 0.117 92.2) |
| XYZ | xyz(21.9540, 22.9491, 4.3100) |
| Luminance | 0.2295 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Diarrhea
#9F8303
ΔE00 1.85
Yellowish Brown
#9B7A01
ΔE00 2.85
Baby Poop
#937C00
ΔE00 3.07
Dark Mustard
#A88905
ΔE00 3.70
Puke Brown
#947706
ΔE00 3.73
Hazel
#8E7618
ΔE00 4.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9D811B #1B379D
analogous
#9D401B #9D811B #789D1B
triadic
#9D811B #1B9D81 #811B9D
tetradic
#9D811B #1B9D40 #1B379D #9D1B78
square
#9D811B #1B9D40 #1B379D #9D1B78
split-complementary
#9D811B #1B789D #401B9D
monochromatic
#352B09 #695612 #9D811B #D1AC24 #E1C251
Accessibility & contrast
On white
3.76
#9D811B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.59
#9D811B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9D811B
5.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9D811B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9D811B | 1.00 | 3.76 | 5.59 | 5.59 |
| #FFFFFF | 3.76 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.59 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.59 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#907F00
Deuteranopia (green-blind)
#978722
Tritanopia (blue-blind)
#AA756E
Achromatopsia (no color)
#848484
Design tokens & code
CSS
--color: #9d811b; /* rgb */ color: rgb(157, 129, 27); /* oklch */ color: oklch(61.3% 0.117 92.2);
Tailwind
colors: {
custom: {
50: '#bea562',
500: '#9d811b',
950: '#000000',
},
}SCSS
$custom: #9d811b; $custom-light: #bea562; $custom-dark: #000000;
JSON
{
"hex": "#9d811b",
"rgb": {
"r": 157,
"g": 129,
"b": 27
},
"hsl": {
"h": 47.077,
"s": 70.652,
"l": 36.078
},
"oklch": {
"l": 0.61255,
"c": 0.11708,
"h": 92.2
},
"luminance": 0.22948
}Semantic roles & 50–950 ramp
primary
#9D811B
secondary
#5069C4
accent
#61ED3A
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F05
muted
#827F7A