#9C8D31#9C8D31
#9C8D31 is a light, moderate yellow. Relative luminance 0.263; OKLCH L 63.9% C 0.112 H 99.9°. Best body text is #000000 at 6.27:1 contrast (WCAG AA passes).
Color values
| HEX | #9C8D31 |
|---|---|
| RGB | rgb(156, 141, 49) |
| HSL | hsl(52, 52%, 40%) |
| HSV | hsv(52, 69%, 61%) |
| CMYK | cmyk(0%, 9.6%, 68.6%, 38.8%) |
| CIE-LAB | lab(58.36, -5.40, 49.10) |
| CIE-LCH | lch(58.36, 49.40, 96.28°) |
| OKLab | oklab(63.92% -0.0193 0.1104) |
| OKLCH | oklch(63.92% 0.112 99.9) |
| XYZ | xyz(23.7906, 26.3405, 6.7362) |
| Luminance | 0.2634 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poo
#AB9004
ΔE00 5.46
Diarrhea
#9F8303
ΔE00 5.56
Baby Shit Brown
#AD900D
ΔE00 5.65
Dark Mustard
#A88905
ΔE00 5.74
Dark Khaki
#9B8F55
ΔE00 5.95
Baby Poop
#937C00
ΔE00 6.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9C8D31 #31409C
analogous
#9C5831 #9C8D31 #759C31
triadic
#9C8D31 #319C8D #8D319C
tetradic
#9C8D31 #319C58 #31409C #9C3175
square
#9C8D31 #319C58 #31409C #9C3175
split-complementary
#9C8D31 #31759C #58319C
monochromatic
#3F3914 #6D6322 #9C8D31 #C5B345 #D3C674
Accessibility & contrast
On white
3.35
#9C8D31 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.27
#9C8D31 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9C8D31
6.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9C8D31 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9C8D31 | 1.00 | 3.35 | 6.27 | 6.27 |
| #FFFFFF | 3.35 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.27 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.27 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#9A8925
Deuteranopia (green-blind)
#9F8F36
Tritanopia (blue-blind)
#A8837A
Achromatopsia (no color)
#8C8C8C
Design tokens & code
CSS
--color: #9c8d31; /* rgb */ color: rgb(156, 141, 49); /* oklch */ color: oklch(63.9% 0.112 99.9);
Tailwind
colors: {
custom: {
50: '#bcae6e',
500: '#9c8d31',
950: '#000000',
},
}SCSS
$custom: #9c8d31; $custom-light: #bcae6e; $custom-dark: #000000;
JSON
{
"hex": "#9c8d31",
"rgb": {
"r": 156,
"g": 141,
"b": 49
},
"hsl": {
"h": 51.589,
"s": 52.195,
"l": 40.196
},
"oklch": {
"l": 0.63919,
"c": 0.1121,
"h": 99.9
},
"luminance": 0.26339
}Semantic roles & 50–950 ramp
primary
#9C8D31
secondary
#6D78BB
accent
#60DC4C
background
#FBFAF6
surface
#F7F4EC
border
#D0CEC7
text
#121007
muted
#817F7A