#8A8A42#8A8A42
#8A8A42 is a mid, moderate yellow. Relative luminance 0.240; OKLCH L 61.8% C 0.095 H 108.9°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).
Color values
| HEX | #8A8A42 |
|---|---|
| RGB | rgb(138, 138, 66) |
| HSL | hsl(60, 35%, 40%) |
| HSV | hsv(60, 52%, 54%) |
| CMYK | cmyk(0%, 0%, 52.2%, 45.9%) |
| CIE-LAB | lab(56.06, -10.50, 38.11) |
| CIE-LCH | lch(56.06, 39.53, 105.40°) |
| OKLab | oklab(61.76% -0.0307 0.0897) |
| OKLCH | oklch(61.76% 0.095 108.9) |
| XYZ | xyz(20.5536, 23.9741, 8.6979) |
| Luminance | 0.2397 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Drab
#828344
ΔE00 3.07
Camo
#7F8F4E
ΔE00 5.26
Dark Khaki
#9B8F55
ΔE00 5.47
Khaki Green
#728639
ΔE00 6.31
Moss Green
#8A9A5B
ΔE00 7.09
Olive
#808000
ΔE00 7.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A8A42 #42428A
analogous
#8A6642 #8A8A42 #668A42
triadic
#8A8A42 #428A8A #8A428A
tetradic
#8A8A42 #428A66 #42428A #8A4266
square
#8A8A42 #428A66 #42428A #8A4266
split-complementary
#8A8A42 #42668A #66428A
monochromatic
#37371A #61612E #8A8A42 #B0B059 #C4C483
Accessibility & contrast
On white
3.62
#8A8A42 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.79
#8A8A42 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A8A42
5.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A8A42 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A8A42 | 1.00 | 3.62 | 5.79 | 5.79 |
| #FFFFFF | 3.62 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.79 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.79 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#94853B
Deuteranopia (green-blind)
#958846
Tritanopia (blue-blind)
#93827A
Achromatopsia (no color)
#868686
Design tokens & code
CSS
--color: #8a8a42; /* rgb */ color: rgb(138, 138, 66); /* oklch */ color: oklch(61.8% 0.095 108.9);
Tailwind
colors: {
custom: {
50: '#aeac78',
500: '#8a8a42',
950: '#000000',
},
}SCSS
$custom: #8a8a42; $custom-light: #aeac78; $custom-dark: #000000;
JSON
{
"hex": "#8a8a42",
"rgb": {
"r": 138,
"g": 138,
"b": 66
},
"hsl": {
"h": 60,
"s": 35.294,
"l": 40
},
"oklch": {
"l": 0.61758,
"c": 0.09483,
"h": 108.9
},
"luminance": 0.23974
}Semantic roles & 50–950 ramp
primary
#8A8A42
secondary
#7979AE
accent
#5CCB5C
background
#FAFAF7
surface
#F5F4ED
border
#CFCEC8
text
#101009
muted
#7F7F7B