#987B23#987B23
#987B23 is a mid, moderate yellow. Relative luminance 0.210; OKLCH L 59.5% C 0.108 H 89.7°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).
Color values
| HEX | #987B23 |
|---|---|
| RGB | rgb(152, 123, 35) |
| HSL | hsl(45, 63%, 37%) |
| HSV | hsv(45, 77%, 60%) |
| CMYK | cmyk(0%, 19.1%, 77%, 40.4%) |
| CIE-LAB | lab(52.91, 2.03, 49.33) |
| CIE-LCH | lch(52.91, 49.37, 87.65°) |
| OKLab | oklab(59.49% 0.0005 0.1084) |
| OKLCH | oklch(59.49% 0.108 89.7) |
| XYZ | xyz(20.3364, 20.9640, 4.5651) |
| Luminance | 0.2096 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke Brown
#947706
ΔE00 2.58
Yellowish Brown
#9B7A01
ΔE00 2.69
Hazel
#8E7618
ΔE00 2.95
Baby Poop
#937C00
ΔE00 3.63
Poo
#8F7303
ΔE00 3.73
Diarrhea
#9F8303
ΔE00 4.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#987B23 #234098
analogous
#984123 #987B23 #7B9823
triadic
#987B23 #23987B #7B2398
tetradic
#987B23 #239841 #234098 #98237B
square
#987B23 #239841 #234098 #98237B
split-complementary
#987B23 #237B98 #412398
monochromatic
#352A0C #665318 #987B23 #CAA32E #D9BA5C
Accessibility & contrast
On white
4.04
#987B23 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.19
#987B23 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #987B23
5.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##987B23 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##987B23 | 1.00 | 4.04 | 5.19 | 5.19 |
| #FFFFFF | 4.04 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.19 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.19 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8A7A14
Deuteranopia (green-blind)
#918228
Tritanopia (blue-blind)
#A5706A
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #987b23; /* rgb */ color: rgb(152, 123, 35); /* oklch */ color: oklch(59.5% 0.108 89.7);
Tailwind
colors: {
custom: {
50: '#baa065',
500: '#987b23',
950: '#000000',
},
}SCSS
$custom: #987b23; $custom-light: #baa065; $custom-dark: #000000;
JSON
{
"hex": "#987b23",
"rgb": {
"r": 152,
"g": 123,
"b": 35
},
"hsl": {
"h": 45.128,
"s": 62.567,
"l": 36.667
},
"oklch": {
"l": 0.59485,
"c": 0.10835,
"h": 89.7
},
"luminance": 0.20963
}Semantic roles & 50–950 ramp
primary
#987B23
secondary
#5972BE
accent
#6BE642
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120E06
muted
#817E7A