#9A8F2F#9A8F2F
#9A8F2F is a light, moderate yellow. Relative luminance 0.267; OKLCH L 64.2% C 0.115 H 102.7°. Best body text is #000000 at 6.34:1 contrast (WCAG AA passes).
Color values
| HEX | #9A8F2F |
|---|---|
| RGB | rgb(154, 143, 47) |
| HSL | hsl(54, 53%, 39%) |
| HSV | hsv(54, 69%, 60%) |
| CMYK | cmyk(0%, 7.1%, 69.5%, 39.6%) |
| CIE-LAB | lab(58.72, -7.51, 50.26) |
| CIE-LCH | lch(58.72, 50.81, 98.49°) |
| OKLab | oklab(64.15% -0.0254 0.1126) |
| OKLCH | oklch(64.15% 0.115 102.7) |
| XYZ | xyz(23.6630, 26.7212, 6.6000) |
| Luminance | 0.2672 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poo
#AB9004
ΔE00 5.99
Baby Shit Brown
#AD900D
ΔE00 6.31
Pea Soup
#929901
ΔE00 6.32
Dark Khaki
#9B8F55
ΔE00 6.38
Baby Poop Green
#8F9805
ΔE00 6.45
Diarrhea
#9F8303
ΔE00 6.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9A8F2F #2F3A9A
analogous
#9A5A2F #9A8F2F #709A2F
triadic
#9A8F2F #2F9A8F #8F2F9A
tetradic
#9A8F2F #2F9A5A #2F3A9A #9A2F70
square
#9A8F2F #2F9A5A #2F3A9A #9A2F70
split-complementary
#9A8F2F #2F709A #5A2F9A
monochromatic
#3C3812 #6B6321 #9A8F2F #C5B741 #D3C970
Accessibility & contrast
On white
3.31
#9A8F2F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.34
#9A8F2F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9A8F2F
6.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9A8F2F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9A8F2F | 1.00 | 3.31 | 6.34 | 6.34 |
| #FFFFFF | 3.31 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.34 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.34 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#9C8A21
Deuteranopia (green-blind)
#9F8F35
Tritanopia (blue-blind)
#A6857C
Achromatopsia (no color)
#8D8D8D
Design tokens & code
CSS
--color: #9a8f2f; /* rgb */ color: rgb(154, 143, 47); /* oklch */ color: oklch(64.2% 0.115 102.7);
Tailwind
colors: {
custom: {
50: '#bbaf6d',
500: '#9a8f2f',
950: '#000000',
},
}SCSS
$custom: #9a8f2f; $custom-light: #bbaf6d; $custom-dark: #000000;
JSON
{
"hex": "#9a8f2f",
"rgb": {
"r": 154,
"g": 143,
"b": 47
},
"hsl": {
"h": 53.832,
"s": 53.234,
"l": 39.412
},
"oklch": {
"l": 0.64153,
"c": 0.11539,
"h": 102.7
},
"luminance": 0.2672
}Semantic roles & 50–950 ramp
primary
#9A8F2F
secondary
#6A72BB
accent
#5ADD4B
background
#FBFAF6
surface
#F7F4EC
border
#D0CEC7
text
#121007
muted
#817F7A