#977D1F#977D1F
#977D1F is a mid, moderate yellow. Relative luminance 0.213; OKLCH L 59.8% C 0.112 H 92.5°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).
Color values
| HEX | #977D1F |
|---|---|
| RGB | rgb(151, 125, 31) |
| HSL | hsl(47, 66%, 36%) |
| HSV | hsv(47, 79%, 59%) |
| CMYK | cmyk(0%, 17.2%, 79.5%, 40.8%) |
| CIE-LAB | lab(53.33, 0.27, 51.19) |
| CIE-LCH | lch(53.33, 51.19, 89.70°) |
| OKLab | oklab(59.78% -0.0049 0.1115) |
| OKLCH | oklch(59.78% 0.112 92.5) |
| XYZ | xyz(20.3446, 21.3467, 4.3448) |
| Luminance | 0.2135 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poop
#937C00
ΔE00 2.49
Puke Brown
#947706
ΔE00 2.60
Yellowish Brown
#9B7A01
ΔE00 2.77
Hazel
#8E7618
ΔE00 2.90
Diarrhea
#9F8303
ΔE00 3.44
Poo
#8F7303
ΔE00 3.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#977D1F #1F3997
analogous
#97411F #977D1F #75971F
triadic
#977D1F #1F977D #7D1F97
tetradic
#977D1F #1F9741 #1F3997 #971F75
square
#977D1F #1F9741 #1F3997 #971F75
split-complementary
#977D1F #1F7597 #411F97
monochromatic
#31290A #645315 #977D1F #CAA729 #DCBF54
Accessibility & contrast
On white
3.99
#977D1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.27
#977D1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #977D1F
5.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##977D1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##977D1F | 1.00 | 3.99 | 5.27 | 5.27 |
| #FFFFFF | 3.99 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.27 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.27 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8B7B0B
Deuteranopia (green-blind)
#928325
Tritanopia (blue-blind)
#A4726B
Achromatopsia (no color)
#7F7F7F
Design tokens & code
CSS
--color: #977d1f; /* rgb */ color: rgb(151, 125, 31); /* oklch */ color: oklch(59.8% 0.112 92.5);
Tailwind
colors: {
custom: {
50: '#baa263',
500: '#977d1f',
950: '#000000',
},
}SCSS
$custom: #977d1f; $custom-light: #baa263; $custom-dark: #000000;
JSON
{
"hex": "#977d1f",
"rgb": {
"r": 151,
"g": 125,
"b": 31
},
"hsl": {
"h": 47,
"s": 65.934,
"l": 35.686
},
"oklch": {
"l": 0.59782,
"c": 0.11161,
"h": 92.5
},
"luminance": 0.21345
}Semantic roles & 50–950 ramp
primary
#977D1F
secondary
#526ABF
accent
#64E93F
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120F06
muted
#817E7A