#9C8D1F#9C8D1F
#9C8D1F is a light, vivid yellow. Relative luminance 0.262; OKLCH L 63.8% C 0.123 H 101.0°. Best body text is #000000 at 6.24:1 contrast (WCAG AA passes).
Color values
| HEX | #9C8D1F |
|---|---|
| RGB | rgb(156, 141, 31) |
| HSL | hsl(53, 67%, 37%) |
| HSV | hsv(53, 80%, 61%) |
| CMYK | cmyk(0%, 9.6%, 80.1%, 38.8%) |
| CIE-LAB | lab(58.24, -6.27, 55.82) |
| CIE-LCH | lch(58.24, 56.17, 96.41°) |
| OKLab | oklab(63.79% -0.0236 0.1212) |
| OKLCH | oklch(63.79% 0.123 101) |
| XYZ | xyz(23.4837, 26.2177, 5.1196) |
| Luminance | 0.2622 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poo
#AB9004
ΔE00 4.36
Baby Shit Brown
#AD900D
ΔE00 4.78
Diarrhea
#9F8303
ΔE00 4.89
Dark Mustard
#A88905
ΔE00 4.99
Brown Yellow
#B29705
ΔE00 5.77
Yellowy Brown
#AE8B0C
ΔE00 6.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9C8D1F #1F2E9C
analogous
#9C4F1F #9C8D1F #6D9C1F
triadic
#9C8D1F #1F9C8D #8D1F9C
tetradic
#9C8D1F #1F9C4F #1F2E9C #9C1F6D
square
#9C8D1F #1F9C4F #1F2E9C #9C1F6D
split-complementary
#9C8D1F #1F6D9C #4F1F9C
monochromatic
#36310B #695F15 #9C8D1F #CFBB29 #DECE58
Accessibility & contrast
On white
3.36
#9C8D1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.24
#9C8D1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9C8D1F
6.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9C8D1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9C8D1F | 1.00 | 3.36 | 6.24 | 6.24 |
| #FFFFFF | 3.36 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.24 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.24 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#9B8901
Deuteranopia (green-blind)
#9F8F28
Tritanopia (blue-blind)
#A98279
Achromatopsia (no color)
#8C8C8C
Design tokens & code
CSS
--color: #9c8d1f; /* rgb */ color: rgb(156, 141, 31); /* oklch */ color: oklch(63.8% 0.123 101.0);
Tailwind
colors: {
custom: {
50: '#bdae65',
500: '#9c8d1f',
950: '#000000',
},
}SCSS
$custom: #9c8d1f; $custom-light: #bdae65; $custom-dark: #000000;
JSON
{
"hex": "#9c8d1f",
"rgb": {
"r": 156,
"g": 141,
"b": 31
},
"hsl": {
"h": 52.8,
"s": 66.845,
"l": 36.667
},
"oklch": {
"l": 0.6379,
"c": 0.12349,
"h": 101
},
"luminance": 0.26217
}Semantic roles & 50–950 ramp
primary
#9C8D1F
secondary
#5562C1
accent
#53EA3E
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A