#8A8F21#8A8F21
#8A8F21 is a light, vivid yellow. Relative luminance 0.252; OKLCH L 62.6% C 0.127 H 112.2°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).
Color values
| HEX | #8A8F21 |
|---|---|
| RGB | rgb(138, 143, 33) |
| HSL | hsl(63, 63%, 35%) |
| HSV | hsv(63, 77%, 56%) |
| CMYK | cmyk(3.5%, 0%, 76.9%, 43.9%) |
| CIE-LAB | lab(57.23, -15.41, 53.65) |
| CIE-LCH | lch(57.23, 55.81, 106.02°) |
| OKLab | oklab(62.6% -0.0481 0.1177) |
| OKLCH | oklch(62.6% 0.127 112.2) |
| XYZ | xyz(20.5789, 25.1585, 5.2106) |
| Luminance | 0.2516 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Shit Green
#889717
ΔE00 3.32
Baby Poop Green
#8F9805
ΔE00 3.68
Pea Soup
#929901
ΔE00 4.15
Swamp Green
#748500
ΔE00 5.41
Olive
#808000
ΔE00 5.49
Ugly Green
#7A9703
ΔE00 5.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A8F21 #26218F
analogous
#8F5D21 #8A8F21 #538F21
triadic
#8A8F21 #218A8F #8F218A
tetradic
#8A8F21 #218F5D #26218F #8F2153
square
#8A8F21 #218F5D #26218F #8F2153
split-complementary
#8A8F21 #21538F #5D218F
monochromatic
#2A2C0A #5A5D16 #8A8F21 #BAC12C #D1D753
Accessibility & contrast
On white
3.48
#8A8F21 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.03
#8A8F21 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A8F21
6.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A8F21 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A8F21 | 1.00 | 3.48 | 6.03 | 6.03 |
| #FFFFFF | 3.48 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.03 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.03 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#9A8806
Deuteranopia (green-blind)
#9B8B2A
Tritanopia (blue-blind)
#94867A
Achromatopsia (no color)
#898989
Design tokens & code
CSS
--color: #8a8f21; /* rgb */ color: rgb(138, 143, 33); /* oklch */ color: oklch(62.6% 0.127 112.2);
Tailwind
colors: {
custom: {
50: '#afaf66',
500: '#8a8f21',
950: '#000000',
},
}SCSS
$custom: #8a8f21; $custom-light: #afaf66; $custom-dark: #000000;
JSON
{
"hex": "#8a8f21",
"rgb": {
"r": 138,
"g": 143,
"b": 33
},
"hsl": {
"h": 62.727,
"s": 62.5,
"l": 34.51
},
"oklch": {
"l": 0.62601,
"c": 0.12716,
"h": 112.2
},
"luminance": 0.25158
}Semantic roles & 50–950 ramp
primary
#8A8F21
secondary
#5651BB
accent
#42E64A
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A