#978B1F#978B1F
#978B1F is a light, vivid yellow. Relative luminance 0.251; OKLCH L 62.9% C 0.122 H 102.7°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).
Color values
| HEX | #978B1F |
|---|---|
| RGB | rgb(151, 139, 31) |
| HSL | hsl(54, 66%, 36%) |
| HSV | hsv(54, 79%, 59%) |
| CMYK | cmyk(0%, 7.9%, 79.5%, 40.8%) |
| CIE-LAB | lab(57.22, -7.46, 54.72) |
| CIE-LCH | lch(57.22, 55.23, 97.77°) |
| OKLab | oklab(62.86% -0.0267 0.1191) |
| OKLCH | oklch(62.86% 0.122 102.7) |
| XYZ | xyz(22.2435, 25.1445, 4.9778) |
| Luminance | 0.2514 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Diarrhea
#9F8303
ΔE00 5.36
Baby Poo
#AB9004
ΔE00 5.57
Baby Poop
#937C00
ΔE00 5.90
Dark Mustard
#A88905
ΔE00 5.95
Baby Shit Brown
#AD900D
ΔE00 6.00
Olive
#808000
ΔE00 6.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#978B1F #1F2B97
analogous
#974F1F #978B1F #67971F
triadic
#978B1F #1F978B #8B1F97
tetradic
#978B1F #1F974F #1F2B97 #971F67
square
#978B1F #1F974F #1F2B97 #971F67
split-complementary
#978B1F #1F6797 #4F1F97
monochromatic
#312E0A #645C15 #978B1F #CABA29 #DCCE54
Accessibility & contrast
On white
3.48
#978B1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.03
#978B1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #978B1F
6.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##978B1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##978B1F | 1.00 | 3.48 | 6.03 | 6.03 |
| #FFFFFF | 3.48 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.03 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.03 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#988603
Deuteranopia (green-blind)
#9C8C27
Tritanopia (blue-blind)
#A38177
Achromatopsia (no color)
#898989
Design tokens & code
CSS
--color: #978b1f; /* rgb */ color: rgb(151, 139, 31); /* oklch */ color: oklch(62.9% 0.122 102.7);
Tailwind
colors: {
custom: {
50: '#b9ac65',
500: '#978b1f',
950: '#000000',
},
}SCSS
$custom: #978b1f; $custom-light: #b9ac65; $custom-dark: #000000;
JSON
{
"hex": "#978b1f",
"rgb": {
"r": 151,
"g": 139,
"b": 31
},
"hsl": {
"h": 54,
"s": 65.934,
"l": 35.686
},
"oklch": {
"l": 0.62863,
"c": 0.12205,
"h": 102.7
},
"luminance": 0.25143
}Semantic roles & 50–950 ramp
primary
#978B1F
secondary
#525DBF
accent
#50E93F
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A