#9D971F#9D971F
#9D971F is a light, vivid yellow. Relative luminance 0.294; OKLCH L 66.1% C 0.132 H 106.5°. Best body text is #000000 at 6.88:1 contrast (WCAG AA passes).
Color values
| HEX | #9D971F |
|---|---|
| RGB | rgb(157, 151, 31) |
| HSL | hsl(57, 67%, 37%) |
| HSV | hsv(57, 80%, 62%) |
| CMYK | cmyk(0%, 3.8%, 80.3%, 38.4%) |
| CIE-LAB | lab(61.13, -11.18, 58.42) |
| CIE-LCH | lch(61.13, 59.48, 100.83°) |
| OKLab | oklab(66.11% -0.0375 0.1268) |
| OKLCH | oklch(66.11% 0.132 106.5) |
| XYZ | xyz(25.2196, 29.4012, 5.6426) |
| Luminance | 0.2940 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Pea Soup
#929901
ΔE00 3.54
Baby Poop Green
#8F9805
ΔE00 4.01
Vomit
#A2A415
ΔE00 4.36
Puke
#A5A502
ΔE00 4.82
Baby Shit Green
#889717
ΔE00 5.63
Baby Poo
#AB9004
ΔE00 6.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9D971F #1F259D
analogous
#9D581F #9D971F #649D1F
triadic
#9D971F #1F9D97 #971F9D
tetradic
#9D971F #1F9D58 #1F259D #9D1F64
square
#9D971F #1F9D58 #1F259D #9D1F64
split-complementary
#9D971F #1F649D #581F9D
monochromatic
#37350B #6A6615 #9D971F #D0C829 #DED858
Accessibility & contrast
On white
3.05
#9D971F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.88
#9D971F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9D971F
6.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9D971F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9D971F | 1.00 | 3.05 | 6.88 | 6.88 |
| #FFFFFF | 3.05 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.88 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.88 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#A59100
Deuteranopia (green-blind)
#A79629
Tritanopia (blue-blind)
#A98C81
Achromatopsia (no color)
#949494
Design tokens & code
CSS
--color: #9d971f; /* rgb */ color: rgb(157, 151, 31); /* oklch */ color: oklch(66.1% 0.132 106.5);
Tailwind
colors: {
custom: {
50: '#beb566',
500: '#9d971f',
950: '#000000',
},
}SCSS
$custom: #9d971f; $custom-light: #beb566; $custom-dark: #000000;
JSON
{
"hex": "#9d971f",
"rgb": {
"r": 157,
"g": 151,
"b": 31
},
"hsl": {
"h": 57.143,
"s": 67.021,
"l": 36.863
},
"oklch": {
"l": 0.66112,
"c": 0.13217,
"h": 106.5
},
"luminance": 0.294
}Semantic roles & 50–950 ramp
primary
#9D971F
secondary
#565BC2
accent
#46EA3E
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131106
muted
#82807A