#97871F#97871F
#97871F is a mid, moderate yellow. Relative luminance 0.240; OKLCH L 62.0% C 0.119 H 100.0°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).
Color values
| HEX | #97871F |
|---|---|
| RGB | rgb(151, 135, 31) |
| HSL | hsl(52, 66%, 36%) |
| HSV | hsv(52, 79%, 59%) |
| CMYK | cmyk(0%, 10.6%, 79.5%, 40.8%) |
| CIE-LAB | lab(56.09, -5.28, 53.71) |
| CIE-LCH | lch(56.09, 53.97, 95.61°) |
| OKLab | oklab(61.97% -0.0206 0.1169) |
| OKLCH | oklch(61.97% 0.119 100) |
| XYZ | xyz(21.6749, 24.0072, 4.7882) |
| Luminance | 0.2401 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Diarrhea
#9F8303
ΔE00 4.01
Baby Poop
#937C00
ΔE00 4.34
Dark Mustard
#A88905
ΔE00 5.13
Baby Poo
#AB9004
ΔE00 5.51
Baby Shit Brown
#AD900D
ΔE00 5.82
Olive
#808000
ΔE00 6.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#97871F #1F2F97
analogous
#974B1F #97871F #6B971F
triadic
#97871F #1F9787 #871F97
tetradic
#97871F #1F974B #1F2F97 #971F6B
square
#97871F #1F974B #1F2F97 #971F6B
split-complementary
#97871F #1F6B97 #4B1F97
monochromatic
#312C0A #645A15 #97871F #CAB429 #DCCA54
Accessibility & contrast
On white
3.62
#97871F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.80
#97871F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #97871F
5.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##97871F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##97871F | 1.00 | 3.62 | 5.80 | 5.80 |
| #FFFFFF | 3.62 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.80 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.80 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#958305
Deuteranopia (green-blind)
#998927
Tritanopia (blue-blind)
#A37C74
Achromatopsia (no color)
#868686
Design tokens & code
CSS
--color: #97871f; /* rgb */ color: rgb(151, 135, 31); /* oklch */ color: oklch(62.0% 0.119 100.0);
Tailwind
colors: {
custom: {
50: '#b9a964',
500: '#97871f',
950: '#000000',
},
}SCSS
$custom: #97871f; $custom-light: #b9a964; $custom-dark: #000000;
JSON
{
"hex": "#97871f",
"rgb": {
"r": 151,
"g": 135,
"b": 31
},
"hsl": {
"h": 52,
"s": 65.934,
"l": 35.686
},
"oklch": {
"l": 0.61973,
"c": 0.1187,
"h": 100
},
"luminance": 0.24006
}Semantic roles & 50–950 ramp
primary
#97871F
secondary
#5261BF
accent
#56E93F
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A