#97831F#97831F
#97831F is a mid, moderate yellow. Relative luminance 0.229; OKLCH L 61.1% C 0.116 H 97.1°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).
Color values
| HEX | #97831F |
|---|---|
| RGB | rgb(151, 131, 31) |
| HSL | hsl(50, 66%, 36%) |
| HSV | hsv(50, 79%, 59%) |
| CMYK | cmyk(0%, 13.2%, 79.5%, 40.8%) |
| CIE-LAB | lab(54.98, -3.07, 52.70) |
| CIE-LCH | lch(54.98, 52.79, 93.34°) |
| OKLab | oklab(61.09% -0.0144 0.1147) |
| OKLCH | oklch(61.09% 0.116 97.1) |
| XYZ | xyz(21.1272, 22.9120, 4.6057) |
| Luminance | 0.2291 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poop
#937C00
ΔE00 2.97
Diarrhea
#9F8303
ΔE00 3.06
Dark Mustard
#A88905
ΔE00 4.81
Yellowish Brown
#9B7A01
ΔE00 4.85
Puke Brown
#947706
ΔE00 4.86
Hazel
#8E7618
ΔE00 4.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#97831F #1F3397
analogous
#97471F #97831F #6F971F
triadic
#97831F #1F9783 #831F97
tetradic
#97831F #1F9747 #1F3397 #971F6F
square
#97831F #1F9747 #1F3397 #971F6F
split-complementary
#97831F #1F6F97 #471F97
monochromatic
#312B0A #645715 #97831F #CAAF29 #DCC554
Accessibility & contrast
On white
3.76
#97831F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.58
#97831F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #97831F
5.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##97831F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##97831F | 1.00 | 3.76 | 5.58 | 5.58 |
| #FFFFFF | 3.76 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.58 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.58 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#918008
Deuteranopia (green-blind)
#968626
Tritanopia (blue-blind)
#A37870
Achromatopsia (no color)
#848484
Design tokens & code
CSS
--color: #97831f; /* rgb */ color: rgb(151, 131, 31); /* oklch */ color: oklch(61.1% 0.116 97.1);
Tailwind
colors: {
custom: {
50: '#b9a664',
500: '#97831f',
950: '#000000',
},
}SCSS
$custom: #97831f; $custom-light: #b9a664; $custom-dark: #000000;
JSON
{
"hex": "#97831f",
"rgb": {
"r": 151,
"g": 131,
"b": 31
},
"hsl": {
"h": 50,
"s": 65.934,
"l": 35.686
},
"oklch": {
"l": 0.6109,
"c": 0.11564,
"h": 97.1
},
"luminance": 0.22911
}Semantic roles & 50–950 ramp
primary
#97831F
secondary
#5265BF
accent
#5BE93F
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A