#978E28#978E28
#978E28 is a light, moderate yellow. Relative luminance 0.261; OKLCH L 63.6% C 0.119 H 104.2°. Best body text is #000000 at 6.22:1 contrast (WCAG AA passes).
Color values
| HEX | #978E28 |
|---|---|
| RGB | rgb(151, 142, 40) |
| HSL | hsl(55, 58%, 37%) |
| HSV | hsv(55, 74%, 59%) |
| CMYK | cmyk(0%, 6%, 73.5%, 40.8%) |
| CIE-LAB | lab(58.11, -8.69, 52.36) |
| CIE-LCH | lch(58.11, 53.08, 99.42°) |
| OKLab | oklab(63.59% -0.0293 0.1158) |
| OKLCH | oklch(63.59% 0.119 104.2) |
| XYZ | xyz(22.8195, 26.0794, 5.8389) |
| Luminance | 0.2608 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Pea Soup
#929901
ΔE00 5.71
Baby Poop Green
#8F9805
ΔE00 5.79
Baby Poo
#AB9004
ΔE00 6.29
Olive
#808000
ΔE00 6.43
Baby Shit Green
#889717
ΔE00 6.65
Diarrhea
#9F8303
ΔE00 6.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#978E28 #283197
analogous
#975628 #978E28 #699728
triadic
#978E28 #28978E #8E2897
tetradic
#978E28 #289756 #283197 #972869
square
#978E28 #289756 #283197 #972869
split-complementary
#978E28 #286997 #562897
monochromatic
#36330E #67611B #978E28 #C7BB35 #D6CD64
Accessibility & contrast
On white
3.38
#978E28 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.22
#978E28 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #978E28
6.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##978E28 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##978E28 | 1.00 | 3.38 | 6.22 | 6.22 |
| #FFFFFF | 3.38 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.22 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.22 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#9B8916
Deuteranopia (green-blind)
#9E8E2F
Tritanopia (blue-blind)
#A3847A
Achromatopsia (no color)
#8C8C8C
Design tokens & code
CSS
--color: #978e28; /* rgb */ color: rgb(151, 142, 40); /* oklch */ color: oklch(63.6% 0.119 104.2);
Tailwind
colors: {
custom: {
50: '#b9ae69',
500: '#978e28',
950: '#000000',
},
}SCSS
$custom: #978e28; $custom-light: #b9ae69; $custom-dark: #000000;
JSON
{
"hex": "#978e28",
"rgb": {
"r": 151,
"g": 142,
"b": 40
},
"hsl": {
"h": 55.135,
"s": 58.115,
"l": 37.451
},
"oklch": {
"l": 0.63592,
"c": 0.11948,
"h": 104.2
},
"luminance": 0.26079
}Semantic roles & 50–950 ramp
primary
#978E28
secondary
#5F67BC
accent
#53E146
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121007
muted
#817F7A