#977C1F#977C1F
#977C1F is a mid, moderate yellow. Relative luminance 0.211; OKLCH L 59.6% C 0.111 H 91.7°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).
Color values
| HEX | #977C1F |
|---|---|
| RGB | rgb(151, 124, 31) |
| HSL | hsl(47, 66%, 36%) |
| HSV | hsv(47, 79%, 59%) |
| CMYK | cmyk(0%, 17.9%, 79.5%, 40.8%) |
| CIE-LAB | lab(53.05, 0.83, 50.93) |
| CIE-LCH | lch(53.05, 50.94, 89.06°) |
| OKLab | oklab(59.57% -0.0033 0.111) |
| OKLCH | oklch(59.57% 0.111 91.7) |
| XYZ | xyz(20.2187, 21.0948, 4.3028) |
| Luminance | 0.2109 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke Brown
#947706
ΔE00 2.34
Yellowish Brown
#9B7A01
ΔE00 2.56
Hazel
#8E7618
ΔE00 2.71
Baby Poop
#937C00
ΔE00 2.72
Poo
#8F7303
ΔE00 3.64
Diarrhea
#9F8303
ΔE00 3.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#977C1F #1F3A97
analogous
#97401F #977C1F #76971F
triadic
#977C1F #1F977C #7C1F97
tetradic
#977C1F #1F9740 #1F3A97 #971F76
square
#977C1F #1F9740 #1F3A97 #971F76
split-complementary
#977C1F #1F7697 #401F97
monochromatic
#31290A #645215 #977C1F #CAA629 #DCBD54
Accessibility & contrast
On white
4.02
#977C1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.22
#977C1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #977C1F
5.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##977C1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##977C1F | 1.00 | 4.02 | 5.22 | 5.22 |
| #FFFFFF | 4.02 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.22 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.22 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8B7A0C
Deuteranopia (green-blind)
#918225
Tritanopia (blue-blind)
#A4716A
Achromatopsia (no color)
#7F7F7F
Design tokens & code
CSS
--color: #977c1f; /* rgb */ color: rgb(151, 124, 31); /* oklch */ color: oklch(59.6% 0.111 91.7);
Tailwind
colors: {
custom: {
50: '#baa163',
500: '#977c1f',
950: '#000000',
},
}SCSS
$custom: #977c1f; $custom-light: #baa163; $custom-dark: #000000;
JSON
{
"hex": "#977c1f",
"rgb": {
"r": 151,
"g": 124,
"b": 31
},
"hsl": {
"h": 46.5,
"s": 65.934,
"l": 35.686
},
"oklch": {
"l": 0.59565,
"c": 0.11101,
"h": 91.7
},
"luminance": 0.21094
}Semantic roles & 50–950 ramp
primary
#977C1F
secondary
#526BBF
accent
#65E93F
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120E06
muted
#817E7A