#978C27#978C27
#978C27 is a light, moderate yellow. Relative luminance 0.255; OKLCH L 63.1% C 0.118 H 103.0°. Best body text is #000000 at 6.10:1 contrast (WCAG AA passes).
Color values
| HEX | #978C27 |
|---|---|
| RGB | rgb(151, 140, 39) |
| HSL | hsl(54, 59%, 37%) |
| HSV | hsv(54, 74%, 59%) |
| CMYK | cmyk(0%, 7.3%, 74.2%, 40.8%) |
| CIE-LAB | lab(57.54, -7.66, 52.19) |
| CIE-LCH | lch(57.54, 52.75, 98.35°) |
| OKLab | oklab(63.14% -0.0265 0.1153) |
| OKLCH | oklch(63.14% 0.118 103) |
| XYZ | xyz(22.5078, 25.4829, 5.6522) |
| Luminance | 0.2548 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Diarrhea
#9F8303
ΔE00 5.92
Baby Poo
#AB9004
ΔE00 6.00
Olive
#808000
ΔE00 6.23
Baby Shit Brown
#AD900D
ΔE00 6.38
Dark Mustard
#A88905
ΔE00 6.44
Baby Poop
#937C00
ΔE00 6.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#978C27 #273297
analogous
#975427 #978C27 #6A9727
triadic
#978C27 #27978C #8C2797
tetradic
#978C27 #279754 #273297 #97276A
square
#978C27 #279754 #273297 #97276A
split-complementary
#978C27 #276A97 #542797
monochromatic
#36320E #665F1A #978C27 #C8B934 #D6CB62
Accessibility & contrast
On white
3.44
#978C27 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.10
#978C27 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #978C27
6.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##978C27 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##978C27 | 1.00 | 3.44 | 6.10 | 6.10 |
| #FFFFFF | 3.44 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.10 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.10 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#998715
Deuteranopia (green-blind)
#9C8C2E
Tritanopia (blue-blind)
#A38278
Achromatopsia (no color)
#8A8A8A
Design tokens & code
CSS
--color: #978c27; /* rgb */ color: rgb(151, 140, 39); /* oklch */ color: oklch(63.1% 0.118 103.0);
Tailwind
colors: {
custom: {
50: '#b9ad69',
500: '#978c27',
950: '#000000',
},
}SCSS
$custom: #978c27; $custom-light: #b9ad69; $custom-dark: #000000;
JSON
{
"hex": "#978c27",
"rgb": {
"r": 151,
"g": 140,
"b": 39
},
"hsl": {
"h": 54.107,
"s": 58.947,
"l": 37.255
},
"oklch": {
"l": 0.63137,
"c": 0.11829,
"h": 103
},
"luminance": 0.25482
}Semantic roles & 50–950 ramp
primary
#978C27
secondary
#5E67BC
accent
#55E246
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121007
muted
#817F7A