#97851F#97851F
#97851F is a mid, moderate yellow. Relative luminance 0.235; OKLCH L 61.5% C 0.117 H 98.6°. Best body text is #000000 at 5.69:1 contrast (WCAG AA passes).
Color values
| HEX | #97851F |
|---|---|
| RGB | rgb(151, 133, 31) |
| HSL | hsl(51, 66%, 36%) |
| HSV | hsv(51, 79%, 59%) |
| CMYK | cmyk(0%, 11.9%, 79.5%, 40.8%) |
| CIE-LAB | lab(55.54, -4.18, 53.20) |
| CIE-LCH | lch(55.54, 53.37, 94.49°) |
| OKLab | oklab(61.53% -0.0175 0.1158) |
| OKLCH | oklch(61.53% 0.117 98.6) |
| XYZ | xyz(21.3984, 23.4544, 4.6961) |
| Luminance | 0.2345 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Diarrhea
#9F8303
ΔE00 3.46
Baby Poop
#937C00
ΔE00 3.61
Dark Mustard
#A88905
ΔE00 4.89
Yellowish Brown
#9B7A01
ΔE00 5.66
Hazel
#8E7618
ΔE00 5.67
Baby Poo
#AB9004
ΔE00 5.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#97851F #1F3197
analogous
#97491F #97851F #6D971F
triadic
#97851F #1F9785 #851F97
tetradic
#97851F #1F9749 #1F3197 #971F6D
square
#97851F #1F9749 #1F3197 #971F6D
split-complementary
#97851F #1F6D97 #491F97
monochromatic
#312C0A #645815 #97851F #CAB229 #DCC854
Accessibility & contrast
On white
3.69
#97851F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.69
#97851F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #97851F
5.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##97851F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##97851F | 1.00 | 3.69 | 5.69 | 5.69 |
| #FFFFFF | 3.69 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.69 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.69 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#938106
Deuteranopia (green-blind)
#988826
Tritanopia (blue-blind)
#A37A72
Achromatopsia (no color)
#858585
Design tokens & code
CSS
--color: #97851f; /* rgb */ color: rgb(151, 133, 31); /* oklch */ color: oklch(61.5% 0.117 98.6);
Tailwind
colors: {
custom: {
50: '#b9a864',
500: '#97851f',
950: '#000000',
},
}SCSS
$custom: #97851f; $custom-light: #b9a864; $custom-dark: #000000;
JSON
{
"hex": "#97851f",
"rgb": {
"r": 151,
"g": 133,
"b": 31
},
"hsl": {
"h": 51,
"s": 65.934,
"l": 35.686
},
"oklch": {
"l": 0.6153,
"c": 0.11713,
"h": 98.6
},
"luminance": 0.23453
}Semantic roles & 50–950 ramp
primary
#97851F
secondary
#5263BF
accent
#58E93F
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A