#978C28#978C28
#978C28 is a light, moderate yellow. Relative luminance 0.255; OKLCH L 63.1% C 0.118 H 102.9°. Best body text is #000000 at 6.10:1 contrast (WCAG AA passes).
Color values
| HEX | #978C28 |
|---|---|
| RGB | rgb(151, 140, 40) |
| HSL | hsl(54, 58%, 37%) |
| HSV | hsv(54, 74%, 59%) |
| CMYK | cmyk(0%, 7.3%, 73.5%, 40.8%) |
| CIE-LAB | lab(57.55, -7.61, 51.81) |
| CIE-LCH | lch(57.55, 52.37, 98.35°) |
| OKLab | oklab(63.15% -0.0263 0.1147) |
| OKLCH | oklch(63.15% 0.118 102.9) |
| XYZ | xyz(22.5246, 25.4896, 5.7406) |
| Luminance | 0.2549 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Diarrhea
#9F8303
ΔE00 5.96
Baby Poo
#AB9004
ΔE00 6.05
Olive
#808000
ΔE00 6.26
Baby Shit Brown
#AD900D
ΔE00 6.42
Baby Poop
#937C00
ΔE00 6.47
Dark Mustard
#A88905
ΔE00 6.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#978C28 #283397
analogous
#975428 #978C28 #6B9728
triadic
#978C28 #28978C #8C2897
tetradic
#978C28 #289754 #283397 #97286B
square
#978C28 #289754 #283397 #97286B
split-complementary
#978C28 #286B97 #542897
monochromatic
#36320E #675F1B #978C28 #C7B935 #D6CB64
Accessibility & contrast
On white
3.44
#978C28 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.10
#978C28 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #978C28
6.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##978C28 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##978C28 | 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)
#998717
Deuteranopia (green-blind)
#9C8C2F
Tritanopia (blue-blind)
#A38278
Achromatopsia (no color)
#8A8A8A
Design tokens & code
CSS
--color: #978c28; /* rgb */ color: rgb(151, 140, 40); /* oklch */ color: oklch(63.1% 0.118 102.9);
Tailwind
colors: {
custom: {
50: '#b9ad69',
500: '#978c28',
950: '#000000',
},
}SCSS
$custom: #978c28; $custom-light: #b9ad69; $custom-dark: #000000;
JSON
{
"hex": "#978c28",
"rgb": {
"r": 151,
"g": 140,
"b": 40
},
"hsl": {
"h": 54.054,
"s": 58.115,
"l": 37.451
},
"oklch": {
"l": 0.63145,
"c": 0.11765,
"h": 102.9
},
"luminance": 0.25489
}Semantic roles & 50–950 ramp
primary
#978C28
secondary
#5F68BC
accent
#56E146
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121007
muted
#817F7A