#978C23#978C23
#978C23 is a light, vivid yellow. Relative luminance 0.255; OKLCH L 63.1% C 0.121 H 103.1°. Best body text is #000000 at 6.09:1 contrast (WCAG AA passes).
Color values
| HEX | #978C23 |
|---|---|
| RGB | rgb(151, 140, 35) |
| HSL | hsl(54, 62%, 36%) |
| HSV | hsv(54, 77%, 59%) |
| CMYK | cmyk(0%, 7.3%, 76.8%, 40.8%) |
| CIE-LAB | lab(57.52, -7.84, 53.63) |
| CIE-LCH | lch(57.52, 54.20, 98.32°) |
| OKLab | oklab(63.11% -0.0274 0.1176) |
| OKLCH | oklch(63.11% 0.121 103.1) |
| XYZ | xyz(22.4450, 25.4578, 5.3214) |
| Luminance | 0.2546 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Diarrhea
#9F8303
ΔE00 5.80
Baby Poo
#AB9004
ΔE00 5.82
Olive
#808000
ΔE00 6.14
Baby Shit Brown
#AD900D
ΔE00 6.23
Pea Soup
#929901
ΔE00 6.27
Dark Mustard
#A88905
ΔE00 6.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#978C23 #232E97
analogous
#975223 #978C23 #689723
triadic
#978C23 #23978C #8C2397
tetradic
#978C23 #239752 #232E97 #972368
square
#978C23 #239752 #232E97 #972368
split-complementary
#978C23 #236897 #522397
monochromatic
#34300C #655E17 #978C23 #C9BA2F #D9CD5B
Accessibility & contrast
On white
3.45
#978C23 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.09
#978C23 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #978C23
6.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##978C23 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##978C23 | 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)
#99870D
Deuteranopia (green-blind)
#9D8C2B
Tritanopia (blue-blind)
#A38278
Achromatopsia (no color)
#8A8A8A
Design tokens & code
CSS
--color: #978c23; /* rgb */ color: rgb(151, 140, 35); /* oklch */ color: oklch(63.1% 0.121 103.1);
Tailwind
colors: {
custom: {
50: '#b9ad67',
500: '#978c23',
950: '#000000',
},
}SCSS
$custom: #978c23; $custom-light: #b9ad67; $custom-dark: #000000;
JSON
{
"hex": "#978c23",
"rgb": {
"r": 151,
"g": 140,
"b": 35
},
"hsl": {
"h": 54.31,
"s": 62.366,
"l": 36.471
},
"oklch": {
"l": 0.63111,
"c": 0.12072,
"h": 103.1
},
"luminance": 0.25457
}Semantic roles & 50–950 ramp
primary
#978C23
secondary
#5862BE
accent
#52E542
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A