#978E1F#978E1F
#978E1F is a light, vivid yellow. Relative luminance 0.260; OKLCH L 63.5% C 0.125 H 104.5°. Best body text is #000000 at 6.20:1 contrast (WCAG AA passes).
Color values
| HEX | #978E1F |
|---|---|
| RGB | rgb(151, 142, 31) |
| HSL | hsl(56, 66%, 36%) |
| HSV | hsv(56, 79%, 59%) |
| CMYK | cmyk(0%, 6%, 79.5%, 40.8%) |
| CIE-LAB | lab(58.06, -9.08, 55.48) |
| CIE-LCH | lch(58.06, 56.22, 99.30°) |
| OKLab | oklab(63.54% -0.0313 0.1207) |
| OKLCH | oklch(63.54% 0.125 104.5) |
| XYZ | xyz(22.6838, 26.0252, 5.1246) |
| Luminance | 0.2602 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Pea Soup
#929901
ΔE00 5.33
Baby Poop Green
#8F9805
ΔE00 5.47
Baby Poo
#AB9004
ΔE00 5.94
Olive
#808000
ΔE00 6.28
Baby Shit Brown
#AD900D
ΔE00 6.43
Diarrhea
#9F8303
ΔE00 6.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#978E1F #1F2897
analogous
#97521F #978E1F #64971F
triadic
#978E1F #1F978E #8E1F97
tetradic
#978E1F #1F9752 #1F2897 #971F64
square
#978E1F #1F9752 #1F2897 #971F64
split-complementary
#978E1F #1F6497 #521F97
monochromatic
#312E0A #645E15 #978E1F #CABE29 #DCD254
Accessibility & contrast
On white
3.38
#978E1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.20
#978E1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #978E1F
6.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##978E1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##978E1F | 1.00 | 3.38 | 6.20 | 6.20 |
| #FFFFFF | 3.38 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.20 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.20 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#9B8901
Deuteranopia (green-blind)
#9E8E28
Tritanopia (blue-blind)
#A38479
Achromatopsia (no color)
#8C8C8C
Design tokens & code
CSS
--color: #978e1f; /* rgb */ color: rgb(151, 142, 31); /* oklch */ color: oklch(63.5% 0.125 104.5);
Tailwind
colors: {
custom: {
50: '#b9ae65',
500: '#978e1f',
950: '#000000',
},
}SCSS
$custom: #978e1f; $custom-light: #b9ae65; $custom-dark: #000000;
JSON
{
"hex": "#978e1f",
"rgb": {
"r": 151,
"g": 142,
"b": 31
},
"hsl": {
"h": 55.5,
"s": 65.934,
"l": 35.686
},
"oklch": {
"l": 0.63535,
"c": 0.1247,
"h": 104.5
},
"luminance": 0.26024
}Semantic roles & 50–950 ramp
primary
#978E1F
secondary
#525BBF
accent
#4CE93F
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A