#8D8A1F#8D8A1F
#8D8A1F is a mid, vivid yellow. Relative luminance 0.239; OKLCH L 61.7% C 0.122 H 107.8°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).
Color values
| HEX | #8D8A1F |
|---|---|
| RGB | rgb(141, 138, 31) |
| HSL | hsl(58, 64%, 34%) |
| HSV | hsv(58, 78%, 55%) |
| CMYK | cmyk(0%, 2.1%, 78%, 44.7%) |
| CIE-LAB | lab(56.03, -11.48, 53.31) |
| CIE-LCH | lch(56.03, 54.53, 102.16°) |
| OKLab | oklab(61.7% -0.0375 0.1165) |
| OKLCH | oklch(61.7% 0.122 107.8) |
| XYZ | xyz(20.3211, 23.9393, 4.8464) |
| Luminance | 0.2394 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 4.15
Baby Poop Green
#8F9805
ΔE00 5.45
Pea Soup
#929901
ΔE00 5.66
Baby Shit Green
#889717
ΔE00 5.75
Shit Green
#758000
ΔE00 6.09
Swamp Green
#748500
ΔE00 6.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8D8A1F #1F228D
analogous
#8D531F #8D8A1F #598D1F
triadic
#8D8A1F #1F8D8A #8A1F8D
tetradic
#8D8A1F #1F8D53 #1F228D #8D1F59
square
#8D8A1F #1F8D53 #1F228D #8D1F59
split-complementary
#8D8A1F #1F598D #531F8D
monochromatic
#292809 #5B5914 #8D8A1F #BFBB2A #D8D44E
Accessibility & contrast
On white
3.63
#8D8A1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.79
#8D8A1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8D8A1F
5.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8D8A1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8D8A1F | 1.00 | 3.63 | 5.79 | 5.79 |
| #FFFFFF | 3.63 | 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)
#968404
Deuteranopia (green-blind)
#988828
Tritanopia (blue-blind)
#988176
Achromatopsia (no color)
#868686
Design tokens & code
CSS
--color: #8d8a1f; /* rgb */ color: rgb(141, 138, 31); /* oklch */ color: oklch(61.7% 0.122 107.8);
Tailwind
colors: {
custom: {
50: '#b2ab64',
500: '#8d8a1f',
950: '#000000',
},
}SCSS
$custom: #8d8a1f; $custom-light: #b2ab64; $custom-dark: #000000;
JSON
{
"hex": "#8d8a1f",
"rgb": {
"r": 141,
"g": 138,
"b": 31
},
"hsl": {
"h": 58.364,
"s": 63.953,
"l": 33.725
},
"oklch": {
"l": 0.61699,
"c": 0.12237,
"h": 107.8
},
"luminance": 0.23939
}Semantic roles & 50–950 ramp
primary
#8D8A1F
secondary
#4D50BB
accent
#45E741
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A