#8F8A1F#8F8A1F
#8F8A1F is a mid, vivid yellow. Relative luminance 0.241; OKLCH L 61.9% C 0.122 H 106.7°. Best body text is #000000 at 5.82:1 contrast (WCAG AA passes).
Color values
| HEX | #8F8A1F |
|---|---|
| RGB | rgb(143, 138, 31) |
| HSL | hsl(57, 64%, 34%) |
| HSV | hsv(57, 78%, 56%) |
| CMYK | cmyk(0%, 3.5%, 78.3%, 43.9%) |
| CIE-LAB | lab(56.20, -10.57, 53.53) |
| CIE-LCH | lch(56.20, 54.57, 101.17°) |
| OKLab | oklab(61.88% -0.035 0.1169) |
| OKLCH | oklch(61.88% 0.122 106.7) |
| XYZ | xyz(20.6643, 24.1163, 4.8625) |
| Luminance | 0.2412 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 4.40
Baby Poop Green
#8F9805
ΔE00 5.67
Pea Soup
#929901
ΔE00 5.80
Baby Shit Green
#889717
ΔE00 6.14
Shit Green
#758000
ΔE00 6.57
Swamp Green
#748500
ΔE00 6.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8F8A1F #1F248F
analogous
#8F521F #8F8A1F #5C8F1F
triadic
#8F8A1F #1F8F8A #8A1F8F
tetradic
#8F8A1F #1F8F52 #1F248F #8F1F5C
square
#8F8A1F #1F8F52 #1F248F #8F1F5C
split-complementary
#8F8A1F #1F5C8F #521F8F
monochromatic
#2A2909 #5D5914 #8F8A1F #C1BB2A #D9D34F
Accessibility & contrast
On white
3.61
#8F8A1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.82
#8F8A1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8F8A1F
5.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8F8A1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8F8A1F | 1.00 | 3.61 | 5.82 | 5.82 |
| #FFFFFF | 3.61 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.82 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.82 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#968504
Deuteranopia (green-blind)
#998928
Tritanopia (blue-blind)
#9A8076
Achromatopsia (no color)
#878787
Design tokens & code
CSS
--color: #8f8a1f; /* rgb */ color: rgb(143, 138, 31); /* oklch */ color: oklch(61.9% 0.122 106.7);
Tailwind
colors: {
custom: {
50: '#b3ab64',
500: '#8f8a1f',
950: '#000000',
},
}SCSS
$custom: #8f8a1f; $custom-light: #b3ab64; $custom-dark: #000000;
JSON
{
"hex": "#8f8a1f",
"rgb": {
"r": 143,
"g": 138,
"b": 31
},
"hsl": {
"h": 57.321,
"s": 64.368,
"l": 34.118
},
"oklch": {
"l": 0.61883,
"c": 0.12203,
"h": 106.7
},
"luminance": 0.24116
}Semantic roles & 50–950 ramp
primary
#8F8A1F
secondary
#4E53BC
accent
#48E740
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A