#878221#878221
#878221 is a mid, moderate yellow. Relative luminance 0.212; OKLCH L 59.3% C 0.114 H 106.4°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).
Color values
| HEX | #878221 |
|---|---|
| RGB | rgb(135, 130, 33) |
| HSL | hsl(57, 61%, 33%) |
| HSV | hsv(57, 76%, 53%) |
| CMYK | cmyk(0%, 3.7%, 75.6%, 47.1%) |
| CIE-LAB | lab(53.20, -9.81, 49.78) |
| CIE-LCH | lch(53.20, 50.73, 101.15°) |
| OKLab | oklab(59.32% -0.0323 0.1096) |
| OKLCH | oklch(59.32% 0.114 106.4) |
| XYZ | xyz(18.2496, 21.2266, 4.5744) |
| Luminance | 0.2123 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 2.70
Shit Green
#758000
ΔE00 5.04
Drab
#828344
ΔE00 5.93
Swamp Green
#748500
ΔE00 6.06
Baby Poop
#937C00
ΔE00 6.13
Poop Green
#6F7C00
ΔE00 6.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#878221 #212687
analogous
#874F21 #878221 #598721
triadic
#878221 #218782 #822187
tetradic
#878221 #21874F #212687 #872159
square
#878221 #21874F #212687 #872159
split-complementary
#878221 #215987 #4F2187
monochromatic
#252309 #565315 #878221 #B8B12D #D4CD4F
Accessibility & contrast
On white
4.00
#878221 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.25
#878221 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #878221
5.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##878221 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##878221 | 1.00 | 4.00 | 5.25 | 5.25 |
| #FFFFFF | 4.00 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.25 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.25 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8E7D0E
Deuteranopia (green-blind)
#908128
Tritanopia (blue-blind)
#91796F
Achromatopsia (no color)
#7F7F7F
Design tokens & code
CSS
--color: #878221; /* rgb */ color: rgb(135, 130, 33); /* oklch */ color: oklch(59.3% 0.114 106.4);
Tailwind
colors: {
custom: {
50: '#ada664',
500: '#878221',
950: '#000000',
},
}SCSS
$custom: #878221; $custom-light: #ada664; $custom-dark: #000000;
JSON
{
"hex": "#878221",
"rgb": {
"r": 135,
"g": 130,
"b": 33
},
"hsl": {
"h": 57.059,
"s": 60.714,
"l": 32.941
},
"oklch": {
"l": 0.59316,
"c": 0.11428,
"h": 106.4
},
"luminance": 0.21226
}Semantic roles & 50–950 ramp
primary
#878221
secondary
#4D52B7
accent
#4CE444
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A