#8A8E2A#8A8E2A
#8A8E2A is a light, vivid yellow. Relative luminance 0.249; OKLCH L 62.4% C 0.120 H 111.7°. Best body text is #000000 at 5.98:1 contrast (WCAG AA passes).
Color values
| HEX | #8A8E2A |
|---|---|
| RGB | rgb(138, 142, 42) |
| HSL | hsl(62, 54%, 36%) |
| HSV | hsv(62, 70%, 56%) |
| CMYK | cmyk(2.8%, 0%, 70.4%, 44.3%) |
| CIE-LAB | lab(56.99, -14.42, 50.10) |
| CIE-LCH | lch(56.99, 52.14, 106.06°) |
| OKLab | oklab(62.43% -0.0445 0.1119) |
| OKLCH | oklch(62.43% 0.12 111.7) |
| XYZ | xyz(20.5728, 24.9169, 5.9158) |
| Luminance | 0.2492 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Shit Green
#889717
ΔE00 4.05
Baby Poop Green
#8F9805
ΔE00 4.61
Pea Soup
#929901
ΔE00 5.06
Olive
#808000
ΔE00 5.52
Swamp Green
#748500
ΔE00 5.55
Dark Yellow Green
#728F02
ΔE00 6.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A8E2A #2E2A8E
analogous
#8E602A #8A8E2A #588E2A
triadic
#8A8E2A #2A8A8E #8E2A8A
tetradic
#8A8E2A #2A8E60 #2E2A8E #8E2A58
square
#8A8E2A #2A8E60 #2E2A8E #8E2A58
split-complementary
#8A8E2A #2A588E #602A8E
monochromatic
#2E300E #5C5F1C #8A8E2A #B8BD38 #CCD162
Accessibility & contrast
On white
3.51
#8A8E2A on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.98
#8A8E2A on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A8E2A
5.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A8E2A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A8E2A | 1.00 | 3.51 | 5.98 | 5.98 |
| #FFFFFF | 3.51 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.98 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.98 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#99871A
Deuteranopia (green-blind)
#9A8A31
Tritanopia (blue-blind)
#94857A
Achromatopsia (no color)
#898989
Design tokens & code
CSS
--color: #8a8e2a; /* rgb */ color: rgb(138, 142, 42); /* oklch */ color: oklch(62.4% 0.120 111.7);
Tailwind
colors: {
custom: {
50: '#afae6a',
500: '#8a8e2a',
950: '#000000',
},
}SCSS
$custom: #8a8e2a; $custom-light: #afae6a; $custom-dark: #000000;
JSON
{
"hex": "#8a8e2a",
"rgb": {
"r": 138,
"g": 142,
"b": 42
},
"hsl": {
"h": 62.4,
"s": 54.348,
"l": 36.078
},
"oklch": {
"l": 0.6243,
"c": 0.12039,
"h": 111.7
},
"luminance": 0.24916
}Semantic roles & 50–950 ramp
primary
#8A8E2A
secondary
#615DB6
accent
#4ADE50
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111007
muted
#807F7A