#997B1F#997B1F
#997B1F is a mid, moderate yellow. Relative luminance 0.210; OKLCH L 59.6% C 0.111 H 89.6°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).
Color values
| HEX | #997B1F |
|---|---|
| RGB | rgb(153, 123, 31) |
| HSL | hsl(45, 66%, 36%) |
| HSV | hsv(45, 80%, 60%) |
| CMYK | cmyk(0%, 19.6%, 79.7%, 40%) |
| CIE-LAB | lab(52.99, 2.32, 50.95) |
| CIE-LCH | lch(52.99, 51.01, 87.39°) |
| OKLab | oklab(59.57% 0.0009 0.1109) |
| OKLCH | oklch(59.57% 0.111 89.6) |
| XYZ | xyz(20.4684, 21.0385, 4.2788) |
| Luminance | 0.2104 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Yellowish Brown
#9B7A01
ΔE00 2.18
Puke Brown
#947706
ΔE00 2.32
Hazel
#8E7618
ΔE00 3.09
Baby Poop
#937C00
ΔE00 3.47
Poo
#8F7303
ΔE00 3.63
Diarrhea
#9F8303
ΔE00 4.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#997B1F #1F3D99
analogous
#993E1F #997B1F #7A991F
triadic
#997B1F #1F997B #7B1F99
tetradic
#997B1F #1F993E #1F3D99 #991F7A
square
#997B1F #1F993E #1F3D99 #991F7A
split-complementary
#997B1F #1F7A99 #3E1F99
monochromatic
#33290A #665215 #997B1F #CCA429 #DDBC56
Accessibility & contrast
On white
4.03
#997B1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.21
#997B1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #997B1F
5.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##997B1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##997B1F | 1.00 | 4.03 | 5.21 | 5.21 |
| #FFFFFF | 4.03 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.21 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.21 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8A7A0C
Deuteranopia (green-blind)
#918224
Tritanopia (blue-blind)
#A67069
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #997b1f; /* rgb */ color: rgb(153, 123, 31); /* oklch */ color: oklch(59.6% 0.111 89.6);
Tailwind
colors: {
custom: {
50: '#bba063',
500: '#997b1f',
950: '#000000',
},
}SCSS
$custom: #997b1f; $custom-light: #bba063; $custom-dark: #000000;
JSON
{
"hex": "#997b1f",
"rgb": {
"r": 153,
"g": 123,
"b": 31
},
"hsl": {
"h": 45.246,
"s": 66.304,
"l": 36.078
},
"oklch": {
"l": 0.59566,
"c": 0.1109,
"h": 89.6
},
"luminance": 0.21037
}Semantic roles & 50–950 ramp
primary
#997B1F
secondary
#546EC0
accent
#69E93F
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#120E06
muted
#817E7A