#8A8C12#8A8C12
#8A8C12 is a mid, vivid yellow. Relative luminance 0.242; OKLCH L 61.8% C 0.131 H 110.7°. Best body text is #000000 at 5.84:1 contrast (WCAG AA passes).
Color values
| HEX | #8A8C12 |
|---|---|
| RGB | rgb(138, 140, 18) |
| HSL | hsl(61, 77%, 31%) |
| HSV | hsv(61, 87%, 55%) |
| CMYK | cmyk(1.4%, 0%, 87.1%, 45.1%) |
| CIE-LAB | lab(56.29, -14.36, 57.11) |
| CIE-LCH | lch(56.29, 58.88, 104.11°) |
| OKLab | oklab(61.83% -0.0463 0.1224) |
| OKLCH | oklch(61.83% 0.131 110.7) |
| XYZ | xyz(19.9693, 24.2037, 4.1920) |
| Luminance | 0.2420 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poop Green
#8F9805
ΔE00 4.17
Olive
#808000
ΔE00 4.32
Baby Shit Green
#889717
ΔE00 4.41
Pea Soup
#929901
ΔE00 4.49
Swamp Green
#748500
ΔE00 5.31
Shit Green
#758000
ΔE00 5.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A8C12 #14128C
analogous
#8C5112 #8A8C12 #4D8C12
triadic
#8A8C12 #128A8C #8C128A
tetradic
#8A8C12 #128C51 #14128C #8C124D
square
#8A8C12 #128C51 #14128C #8C124D
split-complementary
#8A8C12 #124D8C #51128C
monochromatic
#1F2004 #55560B #8A8C12 #BFC219 #E2E534
Accessibility & contrast
On white
3.60
#8A8C12 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.84
#8A8C12 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A8C12
5.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A8C12 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A8C12 | 1.00 | 3.60 | 5.84 | 5.84 |
| #FFFFFF | 3.60 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.84 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.84 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#988500
Deuteranopia (green-blind)
#998820
Tritanopia (blue-blind)
#948277
Achromatopsia (no color)
#878787
Design tokens & code
CSS
--color: #8a8c12; /* rgb */ color: rgb(138, 140, 18); /* oklch */ color: oklch(61.8% 0.131 110.7);
Tailwind
colors: {
custom: {
50: '#b0ad5f',
500: '#8a8c12',
950: '#000000',
},
}SCSS
$custom: #8a8c12; $custom-light: #b0ad5f; $custom-dark: #000000;
JSON
{
"hex": "#8a8c12",
"rgb": {
"r": 138,
"g": 140,
"b": 18
},
"hsl": {
"h": 60.984,
"s": 77.215,
"l": 30.98
},
"oklch": {
"l": 0.61829,
"c": 0.13085,
"h": 110.7
},
"luminance": 0.24203
}Semantic roles & 50–950 ramp
primary
#8A8C12
secondary
#3C39C0
accent
#34F437
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A