#997D1F#997D1F
#997D1F is a mid, moderate yellow. Relative luminance 0.215; OKLCH L 60.0% C 0.112 H 91.2°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).
Color values
| HEX | #997D1F |
|---|---|
| RGB | rgb(153, 125, 31) |
| HSL | hsl(46, 66%, 36%) |
| HSV | hsv(46, 80%, 60%) |
| CMYK | cmyk(0%, 18.3%, 79.7%, 40%) |
| CIE-LAB | lab(53.54, 1.20, 51.45) |
| CIE-LCH | lch(53.54, 51.47, 88.67°) |
| OKLab | oklab(59.99% -0.0023 0.112) |
| OKLCH | oklch(59.99% 0.112 91.2) |
| XYZ | xyz(20.7190, 21.5398, 4.3624) |
| Luminance | 0.2154 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Yellowish Brown
#9B7A01
ΔE00 2.39
Puke Brown
#947706
ΔE00 2.59
Baby Poop
#937C00
ΔE00 2.90
Hazel
#8E7618
ΔE00 3.24
Diarrhea
#9F8303
ΔE00 3.36
Poo
#8F7303
ΔE00 4.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#997D1F #1F3B99
analogous
#99401F #997D1F #78991F
triadic
#997D1F #1F997D #7D1F99
tetradic
#997D1F #1F9940 #1F3B99 #991F78
square
#997D1F #1F9940 #1F3B99 #991F78
split-complementary
#997D1F #1F7899 #401F99
monochromatic
#332A0A #665315 #997D1F #CCA729 #DDBE56
Accessibility & contrast
On white
3.96
#997D1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.31
#997D1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #997D1F
5.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##997D1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##997D1F | 1.00 | 3.96 | 5.31 | 5.31 |
| #FFFFFF | 3.96 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.31 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.31 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8C7B0B
Deuteranopia (green-blind)
#938325
Tritanopia (blue-blind)
#A6726B
Achromatopsia (no color)
#808080
Design tokens & code
CSS
--color: #997d1f; /* rgb */ color: rgb(153, 125, 31); /* oklch */ color: oklch(60.0% 0.112 91.2);
Tailwind
colors: {
custom: {
50: '#bba263',
500: '#997d1f',
950: '#000000',
},
}SCSS
$custom: #997d1f; $custom-light: #bba263; $custom-dark: #000000;
JSON
{
"hex": "#997d1f",
"rgb": {
"r": 153,
"g": 125,
"b": 31
},
"hsl": {
"h": 46.23,
"s": 66.304,
"l": 36.078
},
"oklch": {
"l": 0.59994,
"c": 0.11199,
"h": 91.2
},
"luminance": 0.21538
}Semantic roles & 50–950 ramp
primary
#997D1F
secondary
#546CC0
accent
#66E93F
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#120F06
muted
#817E7A