#97791F#97791F
#97791F is a mid, moderate yellow. Relative luminance 0.204; OKLCH L 58.9% C 0.109 H 89.2°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).
Color values
| HEX | #97791F |
|---|---|
| RGB | rgb(151, 121, 31) |
| HSL | hsl(45, 66%, 36%) |
| HSV | hsv(45, 79%, 59%) |
| CMYK | cmyk(0%, 19.9%, 79.5%, 40.8%) |
| CIE-LAB | lab(52.24, 2.52, 50.18) |
| CIE-LCH | lch(52.24, 50.25, 87.12°) |
| OKLab | oklab(58.92% 0.0016 0.1094) |
| OKLCH | oklch(58.92% 0.109 89.2) |
| XYZ | xyz(19.8484, 20.3543, 4.1794) |
| Luminance | 0.2035 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke Brown
#947706
ΔE00 2.09
Yellowish Brown
#9B7A01
ΔE00 2.46
Hazel
#8E7618
ΔE00 2.62
Poo
#8F7303
ΔE00 3.10
Baby Poop
#937C00
ΔE00 3.71
Diarrhea
#9F8303
ΔE00 4.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#97791F #1F3D97
analogous
#973D1F #97791F #79971F
triadic
#97791F #1F9779 #791F97
tetradic
#97791F #1F973D #1F3D97 #971F79
square
#97791F #1F973D #1F3D97 #971F79
split-complementary
#97791F #1F7997 #3D1F97
monochromatic
#31280A #645015 #97791F #CAA229 #DCBA54
Accessibility & contrast
On white
4.14
#97791F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.07
#97791F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #97791F
5.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##97791F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##97791F | 1.00 | 4.14 | 5.07 | 5.07 |
| #FFFFFF | 4.14 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.07 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.07 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#88780D
Deuteranopia (green-blind)
#8F8024
Tritanopia (blue-blind)
#A46E68
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #97791f; /* rgb */ color: rgb(151, 121, 31); /* oklch */ color: oklch(58.9% 0.109 89.2);
Tailwind
colors: {
custom: {
50: '#ba9f62',
500: '#97791f',
950: '#000000',
},
}SCSS
$custom: #97791f; $custom-light: #ba9f62; $custom-dark: #000000;
JSON
{
"hex": "#97791f",
"rgb": {
"r": 151,
"g": 121,
"b": 31
},
"hsl": {
"h": 45,
"s": 65.934,
"l": 35.686
},
"oklch": {
"l": 0.58921,
"c": 0.10936,
"h": 89.2
},
"luminance": 0.20353
}Semantic roles & 50–950 ramp
primary
#97791F
secondary
#526EBF
accent
#69E93F
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120E05
muted
#817E7A