#9C8222#9C8222
#9C8222 is a mid, moderate yellow. Relative luminance 0.231; OKLCH L 61.4% C 0.114 H 93.0°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).
Color values
| HEX | #9C8222 |
|---|---|
| RGB | rgb(156, 130, 34) |
| HSL | hsl(47, 64%, 37%) |
| HSV | hsv(47, 78%, 61%) |
| CMYK | cmyk(0%, 16.7%, 78.2%, 38.8%) |
| CIE-LAB | lab(55.23, -0.10, 52.04) |
| CIE-LCH | lch(55.23, 52.04, 90.10°) |
| OKLab | oklab(61.41% -0.0059 0.1137) |
| OKLCH | oklch(61.41% 0.114 93) |
| XYZ | xyz(21.9829, 23.1500, 4.8236) |
| Luminance | 0.2315 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Diarrhea
#9F8303
ΔE00 2.37
Baby Poop
#937C00
ΔE00 3.29
Yellowish Brown
#9B7A01
ΔE00 3.57
Dark Mustard
#A88905
ΔE00 4.03
Puke Brown
#947706
ΔE00 4.16
Hazel
#8E7618
ΔE00 4.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9C8222 #223C9C
analogous
#9C4522 #9C8222 #799C22
triadic
#9C8222 #229C82 #82229C
tetradic
#9C8222 #229C45 #223C9C #9C2279
square
#9C8222 #229C45 #223C9C #9C2279
split-complementary
#9C8222 #22799C #45229C
monochromatic
#382E0C #6A5817 #9C8222 #CEAC2D #DCC15D
Accessibility & contrast
On white
3.73
#9C8222 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.63
#9C8222 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9C8222
5.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9C8222 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9C8222 | 1.00 | 3.73 | 5.63 | 5.63 |
| #FFFFFF | 3.73 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.63 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.63 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#91800F
Deuteranopia (green-blind)
#978728
Tritanopia (blue-blind)
#A97770
Achromatopsia (no color)
#848484
Design tokens & code
CSS
--color: #9c8222; /* rgb */ color: rgb(156, 130, 34); /* oklch */ color: oklch(61.4% 0.114 93.0);
Tailwind
colors: {
custom: {
50: '#bda565',
500: '#9c8222',
950: '#000000',
},
}SCSS
$custom: #9c8222; $custom-light: #bda565; $custom-dark: #000000;
JSON
{
"hex": "#9c8222",
"rgb": {
"r": 156,
"g": 130,
"b": 34
},
"hsl": {
"h": 47.213,
"s": 64.211,
"l": 37.255
},
"oklch": {
"l": 0.61406,
"c": 0.11387,
"h": 93
},
"luminance": 0.23149
}Semantic roles & 50–950 ramp
primary
#9C8222
secondary
#5A6FC0
accent
#64E741
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A