#9D981F#9D981F
#9D981F is a light, vivid yellow. Relative luminance 0.297; OKLCH L 66.3% C 0.133 H 107.0°. Best body text is #000000 at 6.94:1 contrast (WCAG AA passes).
Color values
| HEX | #9D981F |
|---|---|
| RGB | rgb(157, 152, 31) |
| HSL | hsl(58, 67%, 37%) |
| HSV | hsv(58, 80%, 62%) |
| CMYK | cmyk(0%, 3.2%, 80.3%, 38.4%) |
| CIE-LAB | lab(61.42, -11.71, 58.67) |
| CIE-LCH | lch(61.42, 59.83, 101.29°) |
| OKLab | oklab(66.34% -0.0389 0.1273) |
| OKLCH | oklch(66.34% 0.133 107) |
| XYZ | xyz(25.3813, 29.7244, 5.6965) |
| Luminance | 0.2972 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Pea Soup
#929901
ΔE00 3.29
Baby Poop Green
#8F9805
ΔE00 3.78
Vomit
#A2A415
ΔE00 4.00
Puke
#A5A502
ΔE00 4.50
Baby Shit Green
#889717
ΔE00 5.43
Pea Soup Green
#94A617
ΔE00 6.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9D981F #1F249D
analogous
#9D591F #9D981F #639D1F
triadic
#9D981F #1F9D98 #981F9D
tetradic
#9D981F #1F9D59 #1F249D #9D1F63
square
#9D981F #1F9D59 #1F249D #9D1F63
split-complementary
#9D981F #1F639D #591F9D
monochromatic
#37350B #6A6715 #9D981F #D0C929 #DED958
Accessibility & contrast
On white
3.02
#9D981F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.94
#9D981F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9D981F
6.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9D981F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9D981F | 1.00 | 3.02 | 6.94 | 6.94 |
| #FFFFFF | 3.02 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.94 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.94 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#A69200
Deuteranopia (green-blind)
#A8962A
Tritanopia (blue-blind)
#A98D82
Achromatopsia (no color)
#949494
Design tokens & code
CSS
--color: #9d981f; /* rgb */ color: rgb(157, 152, 31); /* oklch */ color: oklch(66.3% 0.133 107.0);
Tailwind
colors: {
custom: {
50: '#beb667',
500: '#9d981f',
950: '#000000',
},
}SCSS
$custom: #9d981f; $custom-light: #beb667; $custom-dark: #000000;
JSON
{
"hex": "#9d981f",
"rgb": {
"r": 157,
"g": 152,
"b": 31
},
"hsl": {
"h": 57.619,
"s": 67.021,
"l": 36.863
},
"oklch": {
"l": 0.66337,
"c": 0.13311,
"h": 107
},
"luminance": 0.29724
}Semantic roles & 50–950 ramp
primary
#9D981F
secondary
#565AC2
accent
#45EA3E
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131106
muted
#82807A