#8C8A1F#8C8A1F
#8C8A1F is a mid, vivid yellow. Relative luminance 0.239; OKLCH L 61.6% C 0.123 H 108.4°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).
Color values
| HEX | #8C8A1F |
|---|---|
| RGB | rgb(140, 138, 31) |
| HSL | hsl(59, 64%, 34%) |
| HSV | hsv(59, 78%, 55%) |
| CMYK | cmyk(0%, 1.4%, 77.9%, 45.1%) |
| CIE-LAB | lab(55.94, -11.94, 53.19) |
| CIE-LCH | lch(55.94, 54.52, 102.65°) |
| OKLab | oklab(61.61% -0.0387 0.1163) |
| OKLCH | oklch(61.61% 0.123 108.4) |
| XYZ | xyz(20.1518, 23.8520, 4.8384) |
| Luminance | 0.2385 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 4.05
Baby Poop Green
#8F9805
ΔE00 5.37
Baby Shit Green
#889717
ΔE00 5.57
Pea Soup
#929901
ΔE00 5.61
Shit Green
#758000
ΔE00 5.86
Swamp Green
#748500
ΔE00 5.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8C8A1F #1F218C
analogous
#8C531F #8C8A1F #578C1F
triadic
#8C8A1F #1F8C8A #8A1F8C
tetradic
#8C8A1F #1F8C53 #1F218C #8C1F57
square
#8C8A1F #1F8C53 #1F218C #8C1F57
split-complementary
#8C8A1F #1F578C #531F8C
monochromatic
#282709 #5A5914 #8C8A1F #BEBB2A #D8D54E
Accessibility & contrast
On white
3.64
#8C8A1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.77
#8C8A1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8C8A1F
5.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8C8A1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8C8A1F | 1.00 | 3.64 | 5.77 | 5.77 |
| #FFFFFF | 3.64 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.77 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.77 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#968404
Deuteranopia (green-blind)
#988828
Tritanopia (blue-blind)
#978176
Achromatopsia (no color)
#868686
Design tokens & code
CSS
--color: #8c8a1f; /* rgb */ color: rgb(140, 138, 31); /* oklch */ color: oklch(61.6% 0.123 108.4);
Tailwind
colors: {
custom: {
50: '#b1ab64',
500: '#8c8a1f',
950: '#000000',
},
}SCSS
$custom: #8c8a1f; $custom-light: #b1ab64; $custom-dark: #000000;
JSON
{
"hex": "#8c8a1f",
"rgb": {
"r": 140,
"g": 138,
"b": 31
},
"hsl": {
"h": 58.899,
"s": 63.743,
"l": 33.529
},
"oklch": {
"l": 0.61607,
"c": 0.12256,
"h": 108.4
},
"luminance": 0.23851
}Semantic roles & 50–950 ramp
primary
#8C8A1F
secondary
#4C4EBB
accent
#44E741
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A