#8A8A1F#8A8A1F
#8A8A1F is a mid, vivid yellow. Relative luminance 0.237; OKLCH L 61.4% C 0.123 H 109.5°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).
Color values
| HEX | #8A8A1F |
|---|---|
| RGB | rgb(138, 138, 31) |
| HSL | hsl(60, 63%, 33%) |
| HSV | hsv(60, 78%, 54%) |
| CMYK | cmyk(0%, 0%, 77.5%, 45.9%) |
| CIE-LAB | lab(55.77, -12.85, 52.97) |
| CIE-LCH | lch(55.77, 54.51, 103.63°) |
| OKLab | oklab(61.43% -0.0411 0.1159) |
| OKLCH | oklch(61.43% 0.123 109.5) |
| XYZ | xyz(19.8178, 23.6798, 4.8228) |
| Luminance | 0.2368 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 3.92
Baby Shit Green
#889717
ΔE00 5.24
Baby Poop Green
#8F9805
ΔE00 5.25
Swamp Green
#748500
ΔE00 5.37
Shit Green
#758000
ΔE00 5.43
Pea Soup
#929901
ΔE00 5.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A8A1F #1F1F8A
analogous
#8A541F #8A8A1F #548A1F
triadic
#8A8A1F #1F8A8A #8A1F8A
tetradic
#8A8A1F #1F8A54 #1F1F8A #8A1F54
square
#8A8A1F #1F8A54 #1F1F8A #8A1F54
split-complementary
#8A8A1F #1F548A #541F8A
monochromatic
#262609 #585814 #8A8A1F #BCBC2A #D7D74C
Accessibility & contrast
On white
3.66
#8A8A1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.74
#8A8A1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A8A1F
5.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A8A1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A8A1F | 1.00 | 3.66 | 5.74 | 5.74 |
| #FFFFFF | 3.66 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.74 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.74 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#968404
Deuteranopia (green-blind)
#978728
Tritanopia (blue-blind)
#948176
Achromatopsia (no color)
#868686
Design tokens & code
CSS
--color: #8a8a1f; /* rgb */ color: rgb(138, 138, 31); /* oklch */ color: oklch(61.4% 0.123 109.5);
Tailwind
colors: {
custom: {
50: '#b0ab64',
500: '#8a8a1f',
950: '#000000',
},
}SCSS
$custom: #8a8a1f; $custom-light: #b0ab64; $custom-dark: #000000;
JSON
{
"hex": "#8a8a1f",
"rgb": {
"r": 138,
"g": 138,
"b": 31
},
"hsl": {
"h": 60,
"s": 63.314,
"l": 33.137
},
"oklch": {
"l": 0.61427,
"c": 0.12298,
"h": 109.5
},
"luminance": 0.23679
}Semantic roles & 50–950 ramp
primary
#8A8A1F
secondary
#4B4BBA
accent
#41E641
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A