#9E8F1F#9E8F1F
#9E8F1F is a light, vivid yellow. Relative luminance 0.270; OKLCH L 64.4% C 0.125 H 101.2°. Best body text is #000000 at 6.40:1 contrast (WCAG AA passes).
Color values
| HEX | #9E8F1F |
|---|---|
| RGB | rgb(158, 143, 31) |
| HSL | hsl(53, 67%, 37%) |
| HSV | hsv(53, 80%, 62%) |
| CMYK | cmyk(0%, 9.5%, 80.4%, 38%) |
| CIE-LAB | lab(58.99, -6.44, 56.55) |
| CIE-LCH | lch(58.99, 56.92, 96.50°) |
| OKLab | oklab(64.43% -0.0242 0.1227) |
| OKLCH | oklch(64.43% 0.125 101.2) |
| XYZ | xyz(24.1715, 27.0141, 5.2371) |
| Luminance | 0.2701 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poo
#AB9004
ΔE00 4.06
Baby Shit Brown
#AD900D
ΔE00 4.50
Dark Mustard
#A88905
ΔE00 5.05
Brown Yellow
#B29705
ΔE00 5.25
Diarrhea
#9F8303
ΔE00 5.26
Yellowy Brown
#AE8B0C
ΔE00 6.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9E8F1F #1F2E9E
analogous
#9E4F1F #9E8F1F #6E9E1F
triadic
#9E8F1F #1F9E8F #8F1F9E
tetradic
#9E8F1F #1F9E4F #1F2E9E #9E1F6E
square
#9E8F1F #1F9E4F #1F2E9E #9E1F6E
split-complementary
#9E8F1F #1F6E9E #4F1F9E
monochromatic
#38320B #6B6115 #9E8F1F #D1BD29 #DECF59
Accessibility & contrast
On white
3.28
#9E8F1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.40
#9E8F1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9E8F1F
6.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9E8F1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9E8F1F | 1.00 | 3.28 | 6.40 | 6.40 |
| #FFFFFF | 3.28 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.40 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.40 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#9D8B00
Deuteranopia (green-blind)
#A29128
Tritanopia (blue-blind)
#AB847A
Achromatopsia (no color)
#8E8E8E
Design tokens & code
CSS
--color: #9e8f1f; /* rgb */ color: rgb(158, 143, 31); /* oklch */ color: oklch(64.4% 0.125 101.2);
Tailwind
colors: {
custom: {
50: '#bfaf65',
500: '#9e8f1f',
950: '#000000',
},
}SCSS
$custom: #9e8f1f; $custom-light: #bfaf65; $custom-dark: #000000;
JSON
{
"hex": "#9e8f1f",
"rgb": {
"r": 158,
"g": 143,
"b": 31
},
"hsl": {
"h": 52.913,
"s": 67.196,
"l": 37.059
},
"oklch": {
"l": 0.64426,
"c": 0.12505,
"h": 101.2
},
"luminance": 0.27013
}Semantic roles & 50–950 ramp
primary
#9E8F1F
secondary
#5663C2
accent
#52EA3E
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A