#987C23#987C23
#987C23 is a mid, moderate yellow. Relative luminance 0.212; OKLCH L 59.7% C 0.109 H 90.6°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).
Color values
| HEX | #987C23 |
|---|---|
| RGB | rgb(152, 124, 35) |
| HSL | hsl(46, 63%, 37%) |
| HSV | hsv(46, 77%, 60%) |
| CMYK | cmyk(0%, 18.4%, 77%, 40.4%) |
| CIE-LAB | lab(53.18, 1.46, 49.59) |
| CIE-LCH | lch(53.18, 49.61, 88.31°) |
| OKLab | oklab(59.7% -0.0011 0.1089) |
| OKLCH | oklch(59.7% 0.109 90.6) |
| XYZ | xyz(20.4611, 21.2133, 4.6067) |
| Luminance | 0.2121 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke Brown
#947706
ΔE00 2.67
Yellowish Brown
#9B7A01
ΔE00 2.74
Hazel
#8E7618
ΔE00 2.99
Baby Poop
#937C00
ΔE00 3.34
Poo
#8F7303
ΔE00 3.90
Diarrhea
#9F8303
ΔE00 4.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#987C23 #233F98
analogous
#984223 #987C23 #7A9823
triadic
#987C23 #23987C #7C2398
tetradic
#987C23 #239842 #233F98 #98237A
square
#987C23 #239842 #233F98 #98237A
split-complementary
#987C23 #237A98 #422398
monochromatic
#352B0C #665318 #987C23 #CAA52E #D9BB5C
Accessibility & contrast
On white
4.01
#987C23 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.24
#987C23 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #987C23
5.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##987C23 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##987C23 | 1.00 | 4.01 | 5.24 | 5.24 |
| #FFFFFF | 4.01 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.24 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.24 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8B7A14
Deuteranopia (green-blind)
#918228
Tritanopia (blue-blind)
#A5716B
Achromatopsia (no color)
#7F7F7F
Design tokens & code
CSS
--color: #987c23; /* rgb */ color: rgb(152, 124, 35); /* oklch */ color: oklch(59.7% 0.109 90.6);
Tailwind
colors: {
custom: {
50: '#baa165',
500: '#987c23',
950: '#000000',
},
}SCSS
$custom: #987c23; $custom-light: #baa165; $custom-dark: #000000;
JSON
{
"hex": "#987c23",
"rgb": {
"r": 152,
"g": 124,
"b": 35
},
"hsl": {
"h": 45.641,
"s": 62.567,
"l": 36.667
},
"oklch": {
"l": 0.59699,
"c": 0.10891,
"h": 90.6
},
"luminance": 0.21212
}Semantic roles & 50–950 ramp
primary
#987C23
secondary
#5971BE
accent
#69E642
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120E06
muted
#817E7A