#997F2F#997F2F
#997F2F is a mid, moderate yellow. Relative luminance 0.222; OKLCH L 60.6% C 0.103 H 90.8°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).
Color values
| HEX | #997F2F |
|---|---|
| RGB | rgb(153, 127, 47) |
| HSL | hsl(45, 53%, 39%) |
| HSV | hsv(45, 69%, 60%) |
| CMYK | cmyk(0%, 17%, 69.3%, 40%) |
| CIE-LAB | lab(54.19, 0.86, 45.57) |
| CIE-LCH | lch(54.19, 45.58, 88.92°) |
| OKLab | oklab(60.55% -0.0014 0.1027) |
| OKLCH | oklch(60.55% 0.103 90.8) |
| XYZ | xyz(21.2404, 22.1575, 5.8468) |
| Luminance | 0.2216 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Hazel
#8E7618
ΔE00 4.12
Yellowish Brown
#9B7A01
ΔE00 4.25
Puke Brown
#947706
ΔE00 4.28
Baby Poop
#937C00
ΔE00 4.42
Diarrhea
#9F8303
ΔE00 4.62
Poo
#8F7303
ΔE00 5.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#997F2F #2F4999
analogous
#994A2F #997F2F #7E992F
triadic
#997F2F #2F997F #7F2F99
tetradic
#997F2F #2F994A #2F4999 #992F7E
square
#997F2F #2F994A #2F4999 #992F7E
split-complementary
#997F2F #2F7E99 #4A2F99
monochromatic
#3B3112 #6A5821 #997F2F #C5A441 #D3BB6F
Accessibility & contrast
On white
3.87
#997F2F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.43
#997F2F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #997F2F
5.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##997F2F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##997F2F | 1.00 | 3.87 | 5.43 | 5.43 |
| #FFFFFF | 3.87 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.43 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.43 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8D7D25
Deuteranopia (green-blind)
#938533
Tritanopia (blue-blind)
#A5756E
Achromatopsia (no color)
#828282
Design tokens & code
CSS
--color: #997f2f; /* rgb */ color: rgb(153, 127, 47); /* oklch */ color: oklch(60.6% 0.103 90.8);
Tailwind
colors: {
custom: {
50: '#baa36c',
500: '#997f2f',
950: '#000000',
},
}SCSS
$custom: #997f2f; $custom-light: #baa36c; $custom-dark: #000000;
JSON
{
"hex": "#997f2f",
"rgb": {
"r": 153,
"g": 127,
"b": 47
},
"hsl": {
"h": 45.283,
"s": 53,
"l": 39.216
},
"oklch": {
"l": 0.6055,
"c": 0.1027,
"h": 90.8
},
"luminance": 0.22156
}Semantic roles & 50–950 ramp
primary
#997F2F
secondary
#697DBA
accent
#6FDC4B
background
#FBFAF6
surface
#F7F3EB
border
#D0CDC6
text
#120F07
muted
#817F7A