#9F8A2F#9F8A2F
#9F8A2F is a light, moderate yellow. Relative luminance 0.258; OKLCH L 63.5% C 0.111 H 95.9°. Best body text is #000000 at 6.15:1 contrast (WCAG AA passes).
Color values
| HEX | #9F8A2F |
|---|---|
| RGB | rgb(159, 138, 47) |
| HSL | hsl(49, 54%, 40%) |
| HSV | hsv(49, 70%, 62%) |
| CMYK | cmyk(0%, 13.2%, 70.4%, 37.6%) |
| CIE-LAB | lab(57.80, -2.52, 49.48) |
| CIE-LCH | lch(57.80, 49.55, 92.92°) |
| OKLab | oklab(63.54% -0.0115 0.1108) |
| OKLCH | oklch(63.54% 0.111 95.9) |
| XYZ | xyz(23.9008, 25.7544, 6.4009) |
| Luminance | 0.2575 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Diarrhea
#9F8303
ΔE00 4.07
Dark Mustard
#A88905
ΔE00 4.31
Baby Poo
#AB9004
ΔE00 4.81
Baby Shit Brown
#AD900D
ΔE00 4.81
Yellowy Brown
#AE8B0C
ΔE00 5.16
Baby Poop
#937C00
ΔE00 5.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9F8A2F #2F449F
analogous
#9F522F #9F8A2F #7C9F2F
triadic
#9F8A2F #2F9F8A #8A2F9F
tetradic
#9F8A2F #2F9F52 #2F449F #9F2F7C
square
#9F8A2F #2F9F52 #2F449F #9F2F7C
split-complementary
#9F8A2F #2F7C9F #522F9F
monochromatic
#413813 #706121 #9F8A2F #C8AF44 #D6C373
Accessibility & contrast
On white
3.41
#9F8A2F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.15
#9F8A2F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9F8A2F
6.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9F8A2F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9F8A2F | 1.00 | 3.41 | 6.15 | 6.15 |
| #FFFFFF | 3.41 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.15 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.15 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#988722
Deuteranopia (green-blind)
#9E8E34
Tritanopia (blue-blind)
#AC7F77
Achromatopsia (no color)
#8B8B8B
Design tokens & code
CSS
--color: #9f8a2f; /* rgb */ color: rgb(159, 138, 47); /* oklch */ color: oklch(63.5% 0.111 95.9);
Tailwind
colors: {
custom: {
50: '#bfab6d',
500: '#9f8a2f',
950: '#000000',
},
}SCSS
$custom: #9f8a2f; $custom-light: #bfab6d; $custom-dark: #000000;
JSON
{
"hex": "#9f8a2f",
"rgb": {
"r": 159,
"g": 138,
"b": 47
},
"hsl": {
"h": 48.75,
"s": 54.369,
"l": 40.392
},
"oklch": {
"l": 0.63541,
"c": 0.11135,
"h": 95.9
},
"luminance": 0.25753
}Semantic roles & 50–950 ramp
primary
#9F8A2F
secondary
#6D7CBD
accent
#66DE4A
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#131007
muted
#827F7A