#9A8F1F#9A8F1F
#9A8F1F is a light, vivid yellow. Relative luminance 0.266; OKLCH L 64.0% C 0.125 H 103.5°. Best body text is #000000 at 6.32:1 contrast (WCAG AA passes).
Color values
| HEX | #9A8F1F |
|---|---|
| RGB | rgb(154, 143, 31) |
| HSL | hsl(55, 66%, 36%) |
| HSV | hsv(55, 80%, 60%) |
| CMYK | cmyk(0%, 7.1%, 79.9%, 39.6%) |
| CIE-LAB | lab(58.62, -8.26, 56.08) |
| CIE-LCH | lch(58.62, 56.69, 98.38°) |
| OKLab | oklab(64.04% -0.0291 0.1219) |
| OKLCH | oklch(64.04% 0.125 103.5) |
| XYZ | xyz(23.3973, 26.6149, 5.2008) |
| Luminance | 0.2661 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poo
#AB9004
ΔE00 5.22
Pea Soup
#929901
ΔE00 5.55
Baby Shit Brown
#AD900D
ΔE00 5.70
Baby Poop Green
#8F9805
ΔE00 5.79
Diarrhea
#9F8303
ΔE00 6.11
Dark Mustard
#A88905
ΔE00 6.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9A8F1F #1F2A9A
analogous
#9A521F #9A8F1F #689A1F
triadic
#9A8F1F #1F9A8F #8F1F9A
tetradic
#9A8F1F #1F9A52 #1F2A9A #9A1F68
square
#9A8F1F #1F9A52 #1F2A9A #9A1F68
split-complementary
#9A8F1F #1F689A #521F9A
monochromatic
#34300A #676015 #9A8F1F #CDBE29 #DDD156
Accessibility & contrast
On white
3.32
#9A8F1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.32
#9A8F1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9A8F1F
6.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9A8F1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9A8F1F | 1.00 | 3.32 | 6.32 | 6.32 |
| #FFFFFF | 3.32 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.32 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.32 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#9D8A00
Deuteranopia (green-blind)
#A08F28
Tritanopia (blue-blind)
#A6847A
Achromatopsia (no color)
#8D8D8D
Design tokens & code
CSS
--color: #9a8f1f; /* rgb */ color: rgb(154, 143, 31); /* oklch */ color: oklch(64.0% 0.125 103.5);
Tailwind
colors: {
custom: {
50: '#bcaf65',
500: '#9a8f1f',
950: '#000000',
},
}SCSS
$custom: #9a8f1f; $custom-light: #bcaf65; $custom-dark: #000000;
JSON
{
"hex": "#9a8f1f",
"rgb": {
"r": 154,
"g": 143,
"b": 31
},
"hsl": {
"h": 54.634,
"s": 66.486,
"l": 36.275
},
"oklch": {
"l": 0.64042,
"c": 0.1253,
"h": 103.5
},
"luminance": 0.26614
}Semantic roles & 50–950 ramp
primary
#9A8F1F
secondary
#545EC1
accent
#4EE93E
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#121006
muted
#817F7A