#978F27#978F27
#978F27 is a light, vivid yellow. Relative luminance 0.264; OKLCH L 63.8% C 0.121 H 104.9°. Best body text is #000000 at 6.27:1 contrast (WCAG AA passes).
Color values
| HEX | #978F27 |
|---|---|
| RGB | rgb(151, 143, 39) |
| HSL | hsl(56, 59%, 37%) |
| HSV | hsv(56, 74%, 59%) |
| CMYK | cmyk(0%, 5.3%, 74.2%, 40.8%) |
| CIE-LAB | lab(58.39, -9.28, 53.00) |
| CIE-LCH | lch(58.39, 53.81, 99.93°) |
| OKLab | oklab(63.81% -0.0311 0.117) |
| OKLCH | oklch(63.81% 0.121 104.9) |
| XYZ | xyz(22.9521, 26.3716, 5.8003) |
| Luminance | 0.2637 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Pea Soup
#929901
ΔE00 5.27
Baby Poop Green
#8F9805
ΔE00 5.37
Baby Shit Green
#889717
ΔE00 6.27
Baby Poo
#AB9004
ΔE00 6.40
Olive
#808000
ΔE00 6.53
Baby Shit Brown
#AD900D
ΔE00 6.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#978F27 #272F97
analogous
#975727 #978F27 #679727
triadic
#978F27 #27978F #8F2797
tetradic
#978F27 #279757 #272F97 #972767
square
#978F27 #279757 #272F97 #972767
split-complementary
#978F27 #276797 #572797
monochromatic
#36330E #66611A #978F27 #C8BD34 #D6CE62
Accessibility & contrast
On white
3.35
#978F27 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.27
#978F27 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #978F27
6.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##978F27 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##978F27 | 1.00 | 3.35 | 6.27 | 6.27 |
| #FFFFFF | 3.35 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.27 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.27 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#9C8A14
Deuteranopia (green-blind)
#9F8E2E
Tritanopia (blue-blind)
#A3857B
Achromatopsia (no color)
#8C8C8C
Design tokens & code
CSS
--color: #978f27; /* rgb */ color: rgb(151, 143, 39); /* oklch */ color: oklch(63.8% 0.121 104.9);
Tailwind
colors: {
custom: {
50: '#b9af69',
500: '#978f27',
950: '#000000',
},
}SCSS
$custom: #978f27; $custom-light: #b9af69; $custom-dark: #000000;
JSON
{
"hex": "#978f27",
"rgb": {
"r": 151,
"g": 143,
"b": 39
},
"hsl": {
"h": 55.714,
"s": 58.947,
"l": 37.255
},
"oklch": {
"l": 0.6381,
"c": 0.12106,
"h": 104.9
},
"luminance": 0.26371
}Semantic roles & 50–950 ramp
primary
#978F27
secondary
#5E65BC
accent
#51E246
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121007
muted
#817F7A