#978C1F#978C1F
#978C1F is a light, vivid yellow. Relative luminance 0.254; OKLCH L 63.1% C 0.123 H 103.3°. Best body text is #000000 at 6.09:1 contrast (WCAG AA passes).
Color values
| HEX | #978C1F |
|---|---|
| RGB | rgb(151, 140, 31) |
| HSL | hsl(55, 66%, 36%) |
| HSV | hsv(55, 79%, 59%) |
| CMYK | cmyk(0%, 7.3%, 79.5%, 40.8%) |
| CIE-LAB | lab(57.50, -8.00, 54.97) |
| CIE-LCH | lch(57.50, 55.55, 98.28°) |
| OKLab | oklab(63.09% -0.0283 0.1196) |
| OKLCH | oklch(63.09% 0.123 103.3) |
| XYZ | xyz(22.3889, 25.4354, 5.0263) |
| Luminance | 0.2543 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poo
#AB9004
ΔE00 5.67
Diarrhea
#9F8303
ΔE00 5.72
Olive
#808000
ΔE00 6.08
Baby Shit Brown
#AD900D
ΔE00 6.12
Pea Soup
#929901
ΔE00 6.13
Dark Mustard
#A88905
ΔE00 6.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#978C1F #1F2A97
analogous
#97501F #978C1F #66971F
triadic
#978C1F #1F978C #8C1F97
tetradic
#978C1F #1F9750 #1F2A97 #971F66
square
#978C1F #1F9750 #1F2A97 #971F66
split-complementary
#978C1F #1F6697 #501F97
monochromatic
#312E0A #645D15 #978C1F #CABB29 #DCD054
Accessibility & contrast
On white
3.45
#978C1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.09
#978C1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #978C1F
6.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##978C1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##978C1F | 1.00 | 3.45 | 6.09 | 6.09 |
| #FFFFFF | 3.45 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.09 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.09 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#998702
Deuteranopia (green-blind)
#9D8C28
Tritanopia (blue-blind)
#A38278
Achromatopsia (no color)
#8A8A8A
Design tokens & code
CSS
--color: #978c1f; /* rgb */ color: rgb(151, 140, 31); /* oklch */ color: oklch(63.1% 0.123 103.3);
Tailwind
colors: {
custom: {
50: '#b9ad65',
500: '#978c1f',
950: '#000000',
},
}SCSS
$custom: #978c1f; $custom-light: #b9ad65; $custom-dark: #000000;
JSON
{
"hex": "#978c1f",
"rgb": {
"r": 151,
"g": 140,
"b": 31
},
"hsl": {
"h": 54.5,
"s": 65.934,
"l": 35.686
},
"oklch": {
"l": 0.63087,
"c": 0.12292,
"h": 103.3
},
"luminance": 0.25434
}Semantic roles & 50–950 ramp
primary
#978C1F
secondary
#525CBF
accent
#4FE93F
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A