#8A9042#8A9042
#8A9042 is a light, moderate yellow. Relative luminance 0.257; OKLCH L 63.1% C 0.102 H 112.9°. Best body text is #000000 at 6.15:1 contrast (WCAG AA passes).
Color values
| HEX | #8A9042 |
|---|---|
| RGB | rgb(138, 144, 66) |
| HSL | hsl(65, 37%, 41%) |
| HSV | hsv(65, 54%, 56%) |
| CMYK | cmyk(4.2%, 0%, 54.2%, 43.5%) |
| CIE-LAB | lab(57.79, -13.71, 40.13) |
| CIE-LCH | lch(57.79, 42.41, 108.87°) |
| OKLab | oklab(63.14% -0.0398 0.0941) |
| OKLCH | oklch(63.14% 0.102 112.9) |
| XYZ | xyz(21.4383, 25.7435, 8.9929) |
| Luminance | 0.2574 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Camo
#7F8F4E
ΔE00 4.27
Drab
#828344
ΔE00 5.03
Moss Green
#8A9A5B
ΔE00 5.43
Khaki Green
#728639
ΔE00 6.01
Baby Shit Green
#889717
ΔE00 6.04
Dark Khaki
#9B8F55
ΔE00 6.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A9042 #484290
analogous
#906F42 #8A9042 #639042
triadic
#8A9042 #428A90 #90428A
tetradic
#8A9042 #42906F #484290 #904263
square
#8A9042 #42906F #484290 #904263
split-complementary
#8A9042 #426390 #6F4290
monochromatic
#3A3C1C #62662F #8A9042 #ADB45B #C2C785
Accessibility & contrast
On white
3.42
#8A9042 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.15
#8A9042 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A9042
6.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A9042 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A9042 | 1.00 | 3.42 | 6.15 | 6.15 |
| #FFFFFF | 3.42 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.15 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.15 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#9A8A3A
Deuteranopia (green-blind)
#9A8C46
Tritanopia (blue-blind)
#92887F
Achromatopsia (no color)
#8B8B8B
Design tokens & code
CSS
--color: #8a9042; /* rgb */ color: rgb(138, 144, 66); /* oklch */ color: oklch(63.1% 0.102 112.9);
Tailwind
colors: {
custom: {
50: '#aeb079',
500: '#8a9042',
950: '#000000',
},
}SCSS
$custom: #8a9042; $custom-light: #aeb079; $custom-dark: #000000;
JSON
{
"hex": "#8a9042",
"rgb": {
"r": 138,
"g": 144,
"b": 66
},
"hsl": {
"h": 64.615,
"s": 37.143,
"l": 41.176
},
"oklch": {
"l": 0.63139,
"c": 0.10219,
"h": 112.9
},
"luminance": 0.25743
}Semantic roles & 50–950 ramp
primary
#8A9042
secondary
#807CB2
accent
#5BCD63
background
#FAFAF7
surface
#F5F4ED
border
#CFCEC8
text
#101009
muted
#7F7F7B