#8C8A31#8C8A31
#8C8A31 is a mid, moderate yellow. Relative luminance 0.240; OKLCH L 61.7% C 0.110 H 108.0°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).
Color values
| HEX | #8C8A31 |
|---|---|
| RGB | rgb(140, 138, 49) |
| HSL | hsl(59, 48%, 37%) |
| HSV | hsv(59, 65%, 55%) |
| CMYK | cmyk(0%, 1.4%, 65%, 45.1%) |
| CIE-LAB | lab(56.06, -10.96, 46.26) |
| CIE-LCH | lch(56.06, 47.54, 103.33°) |
| OKLab | oklab(61.75% -0.0341 0.1049) |
| OKLCH | oklch(61.75% 0.11 108) |
| XYZ | xyz(20.4588, 23.9748, 6.4550) |
| Luminance | 0.2397 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 5.12
Drab
#828344
ΔE00 5.25
Baby Shit Green
#889717
ΔE00 6.25
Shit Green
#758000
ΔE00 6.45
Swamp Green
#748500
ΔE00 6.49
Baby Poop Green
#8F9805
ΔE00 6.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8C8A31 #31338C
analogous
#8C5C31 #8C8A31 #618C31
triadic
#8C8A31 #318C8A #8A318C
tetradic
#8C8A31 #318C5C #31338C #8C3161
square
#8C8A31 #318C5C #31338C #8C3161
split-complementary
#8C8A31 #31618C #5C318C
monochromatic
#313111 #5F5D21 #8C8A31 #B9B741 #CCC96C
Accessibility & contrast
On white
3.62
#8C8A31 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.79
#8C8A31 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8C8A31
5.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8C8A31 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8C8A31 | 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)
#958526
Deuteranopia (green-blind)
#978837
Tritanopia (blue-blind)
#968178
Achromatopsia (no color)
#868686
Design tokens & code
CSS
--color: #8c8a31; /* rgb */ color: rgb(140, 138, 49); /* oklch */ color: oklch(61.7% 0.110 108.0);
Tailwind
colors: {
custom: {
50: '#b0ab6e',
500: '#8c8a31',
950: '#000000',
},
}SCSS
$custom: #8c8a31; $custom-light: #b0ab6e; $custom-dark: #000000;
JSON
{
"hex": "#8c8a31",
"rgb": {
"r": 140,
"g": 138,
"b": 49
},
"hsl": {
"h": 58.681,
"s": 48.148,
"l": 37.059
},
"oklch": {
"l": 0.61745,
"c": 0.11029,
"h": 108
},
"luminance": 0.23974
}Semantic roles & 50–950 ramp
primary
#8C8A31
secondary
#6667B3
accent
#53D850
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#111007
muted
#807F7A