#97811F#97811F
#97811F is a mid, moderate yellow. Relative luminance 0.224; OKLCH L 60.7% C 0.114 H 95.6°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).
Color values
| HEX | #97811F |
|---|---|
| RGB | rgb(151, 129, 31) |
| HSL | hsl(49, 66%, 36%) |
| HSV | hsv(49, 79%, 59%) |
| CMYK | cmyk(0%, 14.6%, 79.5%, 40.8%) |
| CIE-LAB | lab(54.43, -1.96, 52.19) |
| CIE-LCH | lch(54.43, 52.23, 92.16°) |
| OKLab | oklab(60.65% -0.0112 0.1137) |
| OKLCH | oklch(60.65% 0.114 95.6) |
| XYZ | xyz(20.8612, 22.3799, 4.5170) |
| Luminance | 0.2238 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poop
#937C00
ΔE00 2.49
Diarrhea
#9F8303
ΔE00 2.91
Puke Brown
#947706
ΔE00 4.04
Yellowish Brown
#9B7A01
ΔE00 4.07
Hazel
#8E7618
ΔE00 4.13
Dark Mustard
#A88905
ΔE00 4.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#97811F #1F3597
analogous
#97451F #97811F #71971F
triadic
#97811F #1F9781 #811F97
tetradic
#97811F #1F9745 #1F3597 #971F71
square
#97811F #1F9745 #1F3597 #971F71
split-complementary
#97811F #1F7197 #451F97
monochromatic
#312A0A #645615 #97811F #CAAC29 #DCC354
Accessibility & contrast
On white
3.84
#97811F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.48
#97811F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #97811F
5.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##97811F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##97811F | 1.00 | 3.84 | 5.48 | 5.48 |
| #FFFFFF | 3.84 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.48 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.48 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8F7E09
Deuteranopia (green-blind)
#958526
Tritanopia (blue-blind)
#A4766E
Achromatopsia (no color)
#828282
Design tokens & code
CSS
--color: #97811f; /* rgb */ color: rgb(151, 129, 31); /* oklch */ color: oklch(60.7% 0.114 95.6);
Tailwind
colors: {
custom: {
50: '#b9a563',
500: '#97811f',
950: '#000000',
},
}SCSS
$custom: #97811f; $custom-light: #b9a563; $custom-dark: #000000;
JSON
{
"hex": "#97811f",
"rgb": {
"r": 151,
"g": 129,
"b": 31
},
"hsl": {
"h": 49,
"s": 65.934,
"l": 35.686
},
"oklch": {
"l": 0.60652,
"c": 0.11421,
"h": 95.6
},
"luminance": 0.22379
}Semantic roles & 50–950 ramp
primary
#97811F
secondary
#5266BF
accent
#5EE93F
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A