#997F1F#997F1F
#997F1F is a mid, moderate yellow. Relative luminance 0.221; OKLCH L 60.4% C 0.113 H 92.8°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).
Color values
| HEX | #997F1F |
|---|---|
| RGB | rgb(153, 127, 31) |
| HSL | hsl(47, 66%, 36%) |
| HSV | hsv(47, 80%, 60%) |
| CMYK | cmyk(0%, 17%, 79.7%, 40%) |
| CIE-LAB | lab(54.08, 0.08, 51.95) |
| CIE-LCH | lch(54.08, 51.95, 89.92°) |
| OKLab | oklab(60.43% -0.0055 0.113) |
| OKLCH | oklch(60.43% 0.113 92.8) |
| XYZ | xyz(20.9748, 22.0513, 4.4476) |
| Luminance | 0.2205 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poop
#937C00
ΔE00 2.59
Diarrhea
#9F8303
ΔE00 2.81
Yellowish Brown
#9B7A01
ΔE00 2.92
Puke Brown
#947706
ΔE00 3.15
Hazel
#8E7618
ΔE00 3.63
Poo
#8F7303
ΔE00 4.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#997F1F #1F3999
analogous
#99421F #997F1F #76991F
triadic
#997F1F #1F997F #7F1F99
tetradic
#997F1F #1F9942 #1F3999 #991F76
square
#997F1F #1F9942 #1F3999 #991F76
split-complementary
#997F1F #1F7699 #421F99
monochromatic
#332B0A #665515 #997F1F #CCA929 #DDC056
Accessibility & contrast
On white
3.88
#997F1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.41
#997F1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #997F1F
5.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##997F1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##997F1F | 1.00 | 3.88 | 5.41 | 5.41 |
| #FFFFFF | 3.88 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.41 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.41 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8E7D0A
Deuteranopia (green-blind)
#948425
Tritanopia (blue-blind)
#A6746D
Achromatopsia (no color)
#818181
Design tokens & code
CSS
--color: #997f1f; /* rgb */ color: rgb(153, 127, 31); /* oklch */ color: oklch(60.4% 0.113 92.8);
Tailwind
colors: {
custom: {
50: '#bba363',
500: '#997f1f',
950: '#000000',
},
}SCSS
$custom: #997f1f; $custom-light: #bba363; $custom-dark: #000000;
JSON
{
"hex": "#997f1f",
"rgb": {
"r": 153,
"g": 127,
"b": 31
},
"hsl": {
"h": 47.213,
"s": 66.304,
"l": 36.078
},
"oklch": {
"l": 0.60425,
"c": 0.11318,
"h": 92.8
},
"luminance": 0.2205
}Semantic roles & 50–950 ramp
primary
#997F1F
secondary
#546BC0
accent
#63E93F
background
#FCFAF6
surface
#F8F3EB
border
#D1CDC6
text
#120F06
muted
#817F7A