#8A8021#8A8021
#8A8021 is a mid, moderate yellow. Relative luminance 0.210; OKLCH L 59.1% C 0.112 H 103.1°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).
Color values
| HEX | #8A8021 |
|---|---|
| RGB | rgb(138, 128, 33) |
| HSL | hsl(54, 61%, 34%) |
| HSV | hsv(54, 76%, 54%) |
| CMYK | cmyk(0%, 7.2%, 76.1%, 45.9%) |
| CIE-LAB | lab(52.90, -7.33, 49.59) |
| CIE-LCH | lch(52.90, 50.13, 98.41°) |
| OKLab | oklab(59.14% -0.0255 0.1091) |
| OKLCH | oklch(59.14% 0.112 103.1) |
| XYZ | xyz(18.4757, 20.9522, 4.5095) |
| Luminance | 0.2095 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 3.66
Baby Poop
#937C00
ΔE00 4.68
Hazel
#8E7618
ΔE00 5.39
Ugly Brown
#7D7103
ΔE00 5.85
Shit Green
#758000
ΔE00 6.35
Drab
#828344
ΔE00 6.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A8021 #212B8A
analogous
#8A4B21 #8A8021 #5F8A21
triadic
#8A8021 #218A80 #80218A
tetradic
#8A8021 #218A4B #212B8A #8A215F
square
#8A8021 #218A4B #212B8A #8A215F
split-complementary
#8A8021 #215F8A #4B218A
monochromatic
#272409 #595215 #8A8021 #BBAE2D #D5C950
Accessibility & contrast
On white
4.05
#8A8021 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.19
#8A8021 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A8021
5.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A8021 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A8021 | 1.00 | 4.05 | 5.19 | 5.19 |
| #FFFFFF | 4.05 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.19 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.19 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8C7C0F
Deuteranopia (green-blind)
#8F8028
Tritanopia (blue-blind)
#95776E
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #8a8021; /* rgb */ color: rgb(138, 128, 33); /* oklch */ color: oklch(59.1% 0.112 103.1);
Tailwind
colors: {
custom: {
50: '#afa464',
500: '#8a8021',
950: '#000000',
},
}SCSS
$custom: #8a8021; $custom-light: #afa464; $custom-dark: #000000;
JSON
{
"hex": "#8a8021",
"rgb": {
"r": 138,
"g": 128,
"b": 33
},
"hsl": {
"h": 54.286,
"s": 61.404,
"l": 33.529
},
"oklch": {
"l": 0.59144,
"c": 0.11204,
"h": 103.1
},
"luminance": 0.20951
}Semantic roles & 50–950 ramp
primary
#8A8021
secondary
#4E58B9
accent
#53E543
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A