#977B22#977B22
#977B22 is a mid, moderate yellow. Relative luminance 0.209; OKLCH L 59.4% C 0.109 H 90.5°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).
Color values
| HEX | #977B22 |
|---|---|
| RGB | rgb(151, 123, 34) |
| HSL | hsl(46, 63%, 36%) |
| HSV | hsv(46, 77%, 59%) |
| CMYK | cmyk(0%, 18.5%, 77.5%, 40.8%) |
| CIE-LAB | lab(52.80, 1.52, 49.58) |
| CIE-LCH | lch(52.80, 49.60, 88.24°) |
| OKLab | oklab(59.37% -0.001 0.1087) |
| OKLCH | oklch(59.37% 0.109 90.5) |
| XYZ | xyz(20.1354, 20.8620, 4.4793) |
| Luminance | 0.2086 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke Brown
#947706
ΔE00 2.42
Hazel
#8E7618
ΔE00 2.67
Yellowish Brown
#9B7A01
ΔE00 2.71
Baby Poop
#937C00
ΔE00 3.32
Poo
#8F7303
ΔE00 3.56
Diarrhea
#9F8303
ΔE00 4.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#977B22 #223E97
analogous
#974122 #977B22 #799722
triadic
#977B22 #22977B #7B2297
tetradic
#977B22 #229741 #223E97 #972279
square
#977B22 #229741 #223E97 #972279
split-complementary
#977B22 #227997 #412297
monochromatic
#332A0C #655217 #977B22 #C9A42D #DABB5A
Accessibility & contrast
On white
4.06
#977B22 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.17
#977B22 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #977B22
5.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##977B22 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##977B22 | 1.00 | 4.06 | 5.17 | 5.17 |
| #FFFFFF | 4.06 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.17 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.17 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8A7912
Deuteranopia (green-blind)
#908127
Tritanopia (blue-blind)
#A4706A
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #977b22; /* rgb */ color: rgb(151, 123, 34); /* oklch */ color: oklch(59.4% 0.109 90.5);
Tailwind
colors: {
custom: {
50: '#baa064',
500: '#977b22',
950: '#000000',
},
}SCSS
$custom: #977b22; $custom-light: #baa064; $custom-dark: #000000;
JSON
{
"hex": "#977b22",
"rgb": {
"r": 151,
"g": 123,
"b": 34
},
"hsl": {
"h": 45.641,
"s": 63.243,
"l": 36.275
},
"oklch": {
"l": 0.5937,
"c": 0.10871,
"h": 90.5
},
"luminance": 0.20861
}Semantic roles & 50–950 ramp
primary
#977B22
secondary
#576FBE
accent
#69E642
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120E06
muted
#817E7A