#978828#978828
#978828 is a light, moderate yellow. Relative luminance 0.243; OKLCH L 62.3% C 0.114 H 100.1°. Best body text is #000000 at 5.87:1 contrast (WCAG AA passes).
Color values
| HEX | #978828 |
|---|---|
| RGB | rgb(151, 136, 40) |
| HSL | hsl(52, 58%, 37%) |
| HSV | hsv(52, 74%, 59%) |
| CMYK | cmyk(0%, 9.9%, 73.5%, 40.8%) |
| CIE-LAB | lab(56.43, -5.43, 50.72) |
| CIE-LCH | lch(56.43, 51.01, 96.11°) |
| OKLab | oklab(62.25% -0.0201 0.1124) |
| OKLCH | oklch(62.25% 0.114 100.1) |
| XYZ | xyz(21.9507, 24.3419, 5.5493) |
| Luminance | 0.2434 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Diarrhea
#9F8303
ΔE00 4.69
Baby Poop
#937C00
ΔE00 5.01
Dark Mustard
#A88905
ΔE00 5.65
Baby Poo
#AB9004
ΔE00 5.92
Baby Shit Brown
#AD900D
ΔE00 6.18
Olive
#808000
ΔE00 6.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#978828 #283797
analogous
#975128 #978828 #6E9728
triadic
#978828 #289788 #882897
tetradic
#978828 #289751 #283797 #97286E
square
#978828 #289751 #283797 #97286E
split-complementary
#978828 #286E97 #512897
monochromatic
#36310E #675C1B #978828 #C7B435 #D6C664
Accessibility & contrast
On white
3.58
#978828 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.87
#978828 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #978828
5.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##978828 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##978828 | 1.00 | 3.58 | 5.87 | 5.87 |
| #FFFFFF | 3.58 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.87 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.87 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#958418
Deuteranopia (green-blind)
#998A2E
Tritanopia (blue-blind)
#A37E75
Achromatopsia (no color)
#878787
Design tokens & code
CSS
--color: #978828; /* rgb */ color: rgb(151, 136, 40); /* oklch */ color: oklch(62.3% 0.114 100.1);
Tailwind
colors: {
custom: {
50: '#b9aa69',
500: '#978828',
950: '#000000',
},
}SCSS
$custom: #978828; $custom-light: #b9aa69; $custom-dark: #000000;
JSON
{
"hex": "#978828",
"rgb": {
"r": 151,
"g": 136,
"b": 40
},
"hsl": {
"h": 51.892,
"s": 58.115,
"l": 37.451
},
"oklch": {
"l": 0.62254,
"c": 0.11415,
"h": 100.1
},
"luminance": 0.24341
}Semantic roles & 50–950 ramp
primary
#978828
secondary
#5F6CBC
accent
#5BE146
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121007
muted
#817F7A