#978C21#978C21
#978C21 is a light, vivid yellow. Relative luminance 0.254; OKLCH L 63.1% C 0.122 H 103.2°. Best body text is #000000 at 6.09:1 contrast (WCAG AA passes).
Color values
| HEX | #978C21 |
|---|---|
| RGB | rgb(151, 140, 33) |
| HSL | hsl(54, 64%, 36%) |
| HSV | hsv(54, 78%, 59%) |
| CMYK | cmyk(0%, 7.3%, 78.1%, 40.8%) |
| CIE-LAB | lab(57.51, -7.92, 54.32) |
| CIE-LCH | lch(57.51, 54.89, 98.30°) |
| OKLab | oklab(63.1% -0.0279 0.1186) |
| OKLCH | oklch(63.1% 0.122 103.2) |
| XYZ | xyz(22.4161, 25.4462, 5.1694) |
| Luminance | 0.2545 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poo
#AB9004
ΔE00 5.74
Diarrhea
#9F8303
ΔE00 5.76
Olive
#808000
ΔE00 6.11
Baby Shit Brown
#AD900D
ΔE00 6.17
Pea Soup
#929901
ΔE00 6.19
Dark Mustard
#A88905
ΔE00 6.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#978C21 #212C97
analogous
#975121 #978C21 #679721
triadic
#978C21 #21978C #8C2197
tetradic
#978C21 #219751 #212C97 #972167
square
#978C21 #219751 #212C97 #972167
split-complementary
#978C21 #216797 #512197
monochromatic
#332F0B #655D16 #978C21 #C9BB2C #DACE58
Accessibility & contrast
On white
3.45
#978C21 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.09
#978C21 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #978C21
6.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##978C21 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##978C21 | 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)
#998707
Deuteranopia (green-blind)
#9D8C29
Tritanopia (blue-blind)
#A38278
Achromatopsia (no color)
#8A8A8A
Design tokens & code
CSS
--color: #978c21; /* rgb */ color: rgb(151, 140, 33); /* oklch */ color: oklch(63.1% 0.122 103.2);
Tailwind
colors: {
custom: {
50: '#b9ad66',
500: '#978c21',
950: '#000000',
},
}SCSS
$custom: #978c21; $custom-light: #b9ad66; $custom-dark: #000000;
JSON
{
"hex": "#978c21",
"rgb": {
"r": 151,
"g": 140,
"b": 33
},
"hsl": {
"h": 54.407,
"s": 64.13,
"l": 36.078
},
"oklch": {
"l": 0.63098,
"c": 0.12185,
"h": 103.2
},
"luminance": 0.25445
}Semantic roles & 50–950 ramp
primary
#978C21
secondary
#555FBE
accent
#50E741
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A