#97871B#97871B
#97871B is a mid, vivid yellow. Relative luminance 0.240; OKLCH L 62.0% C 0.121 H 100.2°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).
Color values
| HEX | #97871B |
|---|---|
| RGB | rgb(151, 135, 27) |
| HSL | hsl(52, 70%, 35%) |
| HSV | hsv(52, 82%, 59%) |
| CMYK | cmyk(0%, 10.6%, 82.1%, 40.8%) |
| CIE-LAB | lab(56.08, -5.43, 54.98) |
| CIE-LCH | lch(56.08, 55.25, 95.64°) |
| OKLab | oklab(61.95% -0.0214 0.1188) |
| OKLCH | oklch(61.95% 0.121 100.2) |
| XYZ | xyz(21.6254, 23.9875, 4.5277) |
| Luminance | 0.2399 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Diarrhea
#9F8303
ΔE00 3.90
Baby Poop
#937C00
ΔE00 4.26
Dark Mustard
#A88905
ΔE00 5.02
Baby Poo
#AB9004
ΔE00 5.36
Baby Shit Brown
#AD900D
ΔE00 5.71
Olive
#808000
ΔE00 6.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#97871B #1B2B97
analogous
#97491B #97871B #69971B
triadic
#97871B #1B9787 #871B97
tetradic
#97871B #1B9749 #1B2B97 #971B69
square
#97871B #1B9749 #1B2B97 #971B69
split-complementary
#97871B #1B6997 #491B97
monochromatic
#2F2A08 #635912 #97871B #CBB524 #DFCC4D
Accessibility & contrast
On white
3.62
#97871B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.80
#97871B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #97871B
5.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##97871B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##97871B | 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)
#958300
Deuteranopia (green-blind)
#998924
Tritanopia (blue-blind)
#A37C73
Achromatopsia (no color)
#868686
Design tokens & code
CSS
--color: #97871b; /* rgb */ color: rgb(151, 135, 27); /* oklch */ color: oklch(62.0% 0.121 100.2);
Tailwind
colors: {
custom: {
50: '#baa962',
500: '#97871b',
950: '#000000',
},
}SCSS
$custom: #97871b; $custom-light: #baa962; $custom-dark: #000000;
JSON
{
"hex": "#97871b",
"rgb": {
"r": 151,
"g": 135,
"b": 27
},
"hsl": {
"h": 52.258,
"s": 69.663,
"l": 34.902
},
"oklch": {
"l": 0.61951,
"c": 0.12072,
"h": 100.2
},
"luminance": 0.23986
}Semantic roles & 50–950 ramp
primary
#97871B
secondary
#4C5BC1
accent
#52EC3B
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A