#987F23#987F23
#987F23 is a mid, moderate yellow. Relative luminance 0.220; OKLCH L 60.3% C 0.111 H 93.1°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).
Color values
| HEX | #987F23 |
|---|---|
| RGB | rgb(152, 127, 35) |
| HSL | hsl(47, 63%, 37%) |
| HSV | hsv(47, 77%, 60%) |
| CMYK | cmyk(0%, 16.4%, 77%, 40.4%) |
| CIE-LAB | lab(54.00, -0.22, 50.37) |
| CIE-LCH | lch(54.00, 50.37, 90.25°) |
| OKLab | oklab(60.35% -0.0059 0.1106) |
| OKLCH | oklch(60.35% 0.111 93.1) |
| XYZ | xyz(20.8428, 21.9767, 4.7339) |
| Luminance | 0.2198 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poop
#937C00
ΔE00 2.81
Diarrhea
#9F8303
ΔE00 3.26
Yellowish Brown
#9B7A01
ΔE00 3.34
Puke Brown
#947706
ΔE00 3.36
Hazel
#8E7618
ΔE00 3.53
Poo
#8F7303
ΔE00 4.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#987F23 #233C98
analogous
#984423 #987F23 #779823
triadic
#987F23 #23987F #7F2398
tetradic
#987F23 #239844 #233C98 #982377
square
#987F23 #239844 #233C98 #982377
split-complementary
#987F23 #237798 #442398
monochromatic
#352C0C #665518 #987F23 #CAA92E #D9BF5C
Accessibility & contrast
On white
3.89
#987F23 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.40
#987F23 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #987F23
5.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##987F23 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##987F23 | 1.00 | 3.89 | 5.40 | 5.40 |
| #FFFFFF | 3.89 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.40 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.40 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8D7D12
Deuteranopia (green-blind)
#948428
Tritanopia (blue-blind)
#A5746D
Achromatopsia (no color)
#818181
Design tokens & code
CSS
--color: #987f23; /* rgb */ color: rgb(152, 127, 35); /* oklch */ color: oklch(60.3% 0.111 93.1);
Tailwind
colors: {
custom: {
50: '#baa365',
500: '#987f23',
950: '#000000',
},
}SCSS
$custom: #987f23; $custom-light: #baa365; $custom-dark: #000000;
JSON
{
"hex": "#987f23",
"rgb": {
"r": 152,
"g": 127,
"b": 35
},
"hsl": {
"h": 47.179,
"s": 62.567,
"l": 36.667
},
"oklch": {
"l": 0.60346,
"c": 0.11072,
"h": 93.1
},
"luminance": 0.21975
}Semantic roles & 50–950 ramp
primary
#987F23
secondary
#596EBE
accent
#65E642
background
#FBFAF6
surface
#F7F3EB
border
#D0CDC6
text
#120F06
muted
#817F7A