#8A8B21#8A8B21
#8A8B21 is a mid, vivid yellow. Relative luminance 0.240; OKLCH L 61.7% C 0.123 H 110.1°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).
Color values
| HEX | #8A8B21 |
|---|---|
| RGB | rgb(138, 139, 33) |
| HSL | hsl(61, 62%, 34%) |
| HSV | hsv(61, 76%, 55%) |
| CMYK | cmyk(0.7%, 0%, 76.3%, 45.5%) |
| CIE-LAB | lab(56.07, -13.29, 52.57) |
| CIE-LCH | lch(56.07, 54.22, 104.19°) |
| OKLab | oklab(61.67% -0.0422 0.1154) |
| OKLCH | oklch(61.67% 0.123 110.1) |
| XYZ | xyz(19.9891, 23.9789, 5.0140) |
| Luminance | 0.2398 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 4.26
Baby Shit Green
#889717
ΔE00 4.88
Baby Poop Green
#8F9805
ΔE00 4.98
Pea Soup
#929901
ΔE00 5.33
Swamp Green
#748500
ΔE00 5.34
Shit Green
#758000
ΔE00 5.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A8B21 #22218B
analogous
#8B5721 #8A8B21 #558B21
triadic
#8A8B21 #218A8B #8B218A
tetradic
#8A8B21 #218B57 #22218B #8B2155
square
#8A8B21 #218B57 #22218B #8B2155
split-complementary
#8A8B21 #21558B #57218B
monochromatic
#28280A #595A15 #8A8B21 #BBBC2D #D4D651
Accessibility & contrast
On white
3.62
#8A8B21 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.80
#8A8B21 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A8B21
5.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A8B21 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A8B21 | 1.00 | 3.62 | 5.80 | 5.80 |
| #FFFFFF | 3.62 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.80 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.80 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#978509
Deuteranopia (green-blind)
#98882A
Tritanopia (blue-blind)
#948277
Achromatopsia (no color)
#868686
Design tokens & code
CSS
--color: #8a8b21; /* rgb */ color: rgb(138, 139, 33); /* oklch */ color: oklch(61.7% 0.123 110.1);
Tailwind
colors: {
custom: {
50: '#afac65',
500: '#8a8b21',
950: '#000000',
},
}SCSS
$custom: #8a8b21; $custom-light: #afac65; $custom-dark: #000000;
JSON
{
"hex": "#8a8b21",
"rgb": {
"r": 138,
"g": 139,
"b": 33
},
"hsl": {
"h": 60.566,
"s": 61.628,
"l": 33.725
},
"oklch": {
"l": 0.6167,
"c": 0.1229,
"h": 110.1
},
"luminance": 0.23978
}Semantic roles & 50–950 ramp
primary
#8A8B21
secondary
#504FB9
accent
#43E545
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A