#9D8A2F#9D8A2F
#9D8A2F is a light, moderate yellow. Relative luminance 0.256; OKLCH L 63.3% C 0.111 H 97.2°. Best body text is #000000 at 6.11:1 contrast (WCAG AA passes).
Color values
| HEX | #9D8A2F |
|---|---|
| RGB | rgb(157, 138, 47) |
| HSL | hsl(50, 54%, 40%) |
| HSV | hsv(50, 70%, 62%) |
| CMYK | cmyk(0%, 12.1%, 70.1%, 38.4%) |
| CIE-LAB | lab(57.61, -3.43, 49.22) |
| CIE-LCH | lch(57.61, 49.34, 93.98°) |
| OKLab | oklab(63.34% -0.014 0.1103) |
| OKLCH | oklch(63.34% 0.111 97.2) |
| XYZ | xyz(23.5073, 25.5515, 6.3825) |
| Luminance | 0.2555 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Diarrhea
#9F8303
ΔE00 4.37
Dark Mustard
#A88905
ΔE00 4.78
Baby Poo
#AB9004
ΔE00 5.12
Baby Shit Brown
#AD900D
ΔE00 5.20
Baby Poop
#937C00
ΔE00 5.60
Yellowy Brown
#AE8B0C
ΔE00 5.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9D8A2F #2F429D
analogous
#9D532F #9D8A2F #799D2F
triadic
#9D8A2F #2F9D8A #8A2F9D
tetradic
#9D8A2F #2F9D53 #2F429D #9D2F79
square
#9D8A2F #2F9D53 #2F429D #9D2F79
split-complementary
#9D8A2F #2F799D #532F9D
monochromatic
#3F3713 #6E6121 #9D8A2F #C7B043 #D5C472
Accessibility & contrast
On white
3.44
#9D8A2F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.11
#9D8A2F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9D8A2F
6.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9D8A2F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9D8A2F | 1.00 | 3.44 | 6.11 | 6.11 |
| #FFFFFF | 3.44 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.11 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.11 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#988722
Deuteranopia (green-blind)
#9D8D34
Tritanopia (blue-blind)
#A98077
Achromatopsia (no color)
#8A8A8A
Design tokens & code
CSS
--color: #9d8a2f; /* rgb */ color: rgb(157, 138, 47); /* oklch */ color: oklch(63.3% 0.111 97.2);
Tailwind
colors: {
custom: {
50: '#bdab6d',
500: '#9d8a2f',
950: '#000000',
},
}SCSS
$custom: #9d8a2f; $custom-light: #bdab6d; $custom-dark: #000000;
JSON
{
"hex": "#9d8a2f",
"rgb": {
"r": 157,
"g": 138,
"b": 47
},
"hsl": {
"h": 49.636,
"s": 53.922,
"l": 40
},
"oklch": {
"l": 0.63342,
"c": 0.11115,
"h": 97.2
},
"luminance": 0.2555
}Semantic roles & 50–950 ramp
primary
#9D8A2F
secondary
#6B79BC
accent
#64DD4B
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#121007
muted
#817F7A