#978D1F#978D1F
#978D1F is a light, vivid yellow. Relative luminance 0.257; OKLCH L 63.3% C 0.124 H 103.9°. Best body text is #000000 at 6.15:1 contrast (WCAG AA passes).
Color values
| HEX | #978D1F |
|---|---|
| RGB | rgb(151, 141, 31) |
| HSL | hsl(55, 66%, 36%) |
| HSV | hsv(55, 79%, 59%) |
| CMYK | cmyk(0%, 6.6%, 79.5%, 40.8%) |
| CIE-LAB | lab(57.78, -8.55, 55.23) |
| CIE-LCH | lch(57.78, 55.88, 98.80°) |
| OKLab | oklab(63.31% -0.0298 0.1202) |
| OKLCH | oklch(63.31% 0.124 103.9) |
| XYZ | xyz(22.5357, 25.7289, 5.0752) |
| Luminance | 0.2573 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Pea Soup
#929901
ΔE00 5.73
Baby Poo
#AB9004
ΔE00 5.79
Baby Poop Green
#8F9805
ΔE00 5.86
Diarrhea
#9F8303
ΔE00 6.08
Olive
#808000
ΔE00 6.17
Baby Shit Brown
#AD900D
ΔE00 6.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#978D1F #1F2997
analogous
#97511F #978D1F #65971F
triadic
#978D1F #1F978D #8D1F97
tetradic
#978D1F #1F9751 #1F2997 #971F65
square
#978D1F #1F9751 #1F2997 #971F65
split-complementary
#978D1F #1F6597 #511F97
monochromatic
#312E0A #645E15 #978D1F #CABC29 #DCD154
Accessibility & contrast
On white
3.42
#978D1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.15
#978D1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #978D1F
6.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##978D1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##978D1F | 1.00 | 3.42 | 6.15 | 6.15 |
| #FFFFFF | 3.42 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.15 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.15 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#9A8801
Deuteranopia (green-blind)
#9E8D28
Tritanopia (blue-blind)
#A38379
Achromatopsia (no color)
#8B8B8B
Design tokens & code
CSS
--color: #978d1f; /* rgb */ color: rgb(151, 141, 31); /* oklch */ color: oklch(63.3% 0.124 103.9);
Tailwind
colors: {
custom: {
50: '#b9ae65',
500: '#978d1f',
950: '#000000',
},
}SCSS
$custom: #978d1f; $custom-light: #b9ae65; $custom-dark: #000000;
JSON
{
"hex": "#978d1f",
"rgb": {
"r": 151,
"g": 141,
"b": 31
},
"hsl": {
"h": 55,
"s": 65.934,
"l": 35.686
},
"oklch": {
"l": 0.63311,
"c": 0.1238,
"h": 103.9
},
"luminance": 0.25728
}Semantic roles & 50–950 ramp
primary
#978D1F
secondary
#525BBF
accent
#4DE93F
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A