#8E8521#8E8521
#8E8521 is a mid, moderate yellow. Relative luminance 0.226; OKLCH L 60.7% C 0.116 H 104.0°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).
Color values
| HEX | #8E8521 |
|---|---|
| RGB | rgb(142, 133, 33) |
| HSL | hsl(55, 62%, 34%) |
| HSV | hsv(55, 77%, 56%) |
| CMYK | cmyk(0%, 6.3%, 76.8%, 44.3%) |
| CIE-LAB | lab(54.70, -8.23, 51.42) |
| CIE-LCH | lch(54.70, 52.07, 99.10°) |
| OKLab | oklab(60.66% -0.0282 0.1128) |
| OKLCH | oklch(60.66% 0.116 104) |
| XYZ | xyz(19.8182, 22.6365, 4.7639) |
| Luminance | 0.2264 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 3.95
Baby Poop
#937C00
ΔE00 5.28
Diarrhea
#9F8303
ΔE00 6.23
Shit Green
#758000
ΔE00 6.62
Hazel
#8E7618
ΔE00 6.74
Drab
#828344
ΔE00 6.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E8521 #212A8E
analogous
#8E4F21 #8E8521 #618E21
triadic
#8E8521 #218E85 #85218E
tetradic
#8E8521 #218E4F #212A8E #8E2161
square
#8E8521 #218E4F #212A8E #8E2161
split-complementary
#8E8521 #21618E #4F218E
monochromatic
#2B280A #5C5615 #8E8521 #C0B42D #D7CC52
Accessibility & contrast
On white
3.80
#8E8521 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.53
#8E8521 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8E8521
5.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E8521 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8E8521 | 1.00 | 3.80 | 5.53 | 5.53 |
| #FFFFFF | 3.80 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.53 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.53 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#91800C
Deuteranopia (green-blind)
#948528
Tritanopia (blue-blind)
#997B72
Achromatopsia (no color)
#838383
Design tokens & code
CSS
--color: #8e8521; /* rgb */ color: rgb(142, 133, 33); /* oklch */ color: oklch(60.7% 0.116 104.0);
Tailwind
colors: {
custom: {
50: '#b2a865',
500: '#8e8521',
950: '#000000',
},
}SCSS
$custom: #8e8521; $custom-light: #b2a865; $custom-dark: #000000;
JSON
{
"hex": "#8e8521",
"rgb": {
"r": 142,
"g": 133,
"b": 33
},
"hsl": {
"h": 55.046,
"s": 62.286,
"l": 34.314
},
"oklch": {
"l": 0.60663,
"c": 0.1163,
"h": 104
},
"luminance": 0.22636
}Semantic roles & 50–950 ramp
primary
#8E8521
secondary
#5059BA
accent
#50E542
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A