#9C8B21#9C8B21
#9C8B21 is a light, vivid yellow. Relative luminance 0.256; OKLCH L 63.4% C 0.121 H 99.6°. Best body text is #000000 at 6.13:1 contrast (WCAG AA passes).
Color values
| HEX | #9C8B21 |
|---|---|
| RGB | rgb(156, 139, 33) |
| HSL | hsl(52, 65%, 37%) |
| HSV | hsv(52, 79%, 61%) |
| CMYK | cmyk(0%, 10.9%, 78.8%, 38.8%) |
| CIE-LAB | lab(57.70, -5.10, 54.66) |
| CIE-LCH | lch(57.70, 54.90, 95.33°) |
| OKLab | oklab(63.36% -0.0202 0.1191) |
| OKLCH | oklch(63.36% 0.121 99.6) |
| XYZ | xyz(23.2186, 25.6441, 5.1654) |
| Luminance | 0.2564 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Diarrhea
#9F8303
ΔE00 4.17
Baby Poo
#AB9004
ΔE00 4.32
Dark Mustard
#A88905
ΔE00 4.49
Baby Shit Brown
#AD900D
ΔE00 4.65
Baby Poop
#937C00
ΔE00 5.45
Yellowy Brown
#AE8B0C
ΔE00 5.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9C8B21 #21329C
analogous
#9C4D21 #9C8B21 #709C21
triadic
#9C8B21 #219C8B #8B219C
tetradic
#9C8B21 #219C4D #21329C #9C2170
square
#9C8B21 #219C4D #21329C #9C2170
split-complementary
#9C8B21 #21709C #4D219C
monochromatic
#37310C #695E16 #9C8B21 #CFB82C #DCCA5B
Accessibility & contrast
On white
3.43
#9C8B21 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.13
#9C8B21 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9C8B21
6.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9C8B21 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9C8B21 | 1.00 | 3.43 | 6.13 | 6.13 |
| #FFFFFF | 3.43 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.13 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.13 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#998708
Deuteranopia (green-blind)
#9E8D29
Tritanopia (blue-blind)
#A98077
Achromatopsia (no color)
#8B8B8B
Design tokens & code
CSS
--color: #9c8b21; /* rgb */ color: rgb(156, 139, 33); /* oklch */ color: oklch(63.4% 0.121 99.6);
Tailwind
colors: {
custom: {
50: '#bdac66',
500: '#9c8b21',
950: '#000000',
},
}SCSS
$custom: #9c8b21; $custom-light: #bdac66; $custom-dark: #000000;
JSON
{
"hex": "#9c8b21",
"rgb": {
"r": 156,
"g": 139,
"b": 33
},
"hsl": {
"h": 51.707,
"s": 65.079,
"l": 37.059
},
"oklch": {
"l": 0.63361,
"c": 0.12083,
"h": 99.6
},
"luminance": 0.25643
}Semantic roles & 50–950 ramp
primary
#9C8B21
secondary
#5867C1
accent
#57E840
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A