#9C8A1F#9C8A1F
#9C8A1F is a light, vivid yellow. Relative luminance 0.253; OKLCH L 63.1% C 0.121 H 99.0°. Best body text is #000000 at 6.07:1 contrast (WCAG AA passes).
Color values
| HEX | #9C8A1F |
|---|---|
| RGB | rgb(156, 138, 31) |
| HSL | hsl(51, 67%, 37%) |
| HSV | hsv(51, 80%, 61%) |
| CMYK | cmyk(0%, 11.5%, 80.1%, 38.8%) |
| CIE-LAB | lab(57.41, -4.63, 55.07) |
| CIE-LCH | lch(57.41, 55.27, 94.81°) |
| OKLab | oklab(63.13% -0.019 0.1196) |
| OKLCH | oklch(63.13% 0.121 99) |
| XYZ | xyz(23.0473, 25.3450, 4.9742) |
| Luminance | 0.2534 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Diarrhea
#9F8303
ΔE00 3.74
Dark Mustard
#A88905
ΔE00 4.19
Baby Poo
#AB9004
ΔE00 4.23
Baby Shit Brown
#AD900D
ΔE00 4.54
Baby Poop
#937C00
ΔE00 5.07
Yellowy Brown
#AE8B0C
ΔE00 5.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9C8A1F #1F319C
analogous
#9C4C1F #9C8A1F #709C1F
triadic
#9C8A1F #1F9C8A #8A1F9C
tetradic
#9C8A1F #1F9C4C #1F319C #9C1F70
square
#9C8A1F #1F9C4C #1F319C #9C1F70
split-complementary
#9C8A1F #1F709C #4C1F9C
monochromatic
#36300B #695D15 #9C8A1F #CFB729 #DECA58
Accessibility & contrast
On white
3.46
#9C8A1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.07
#9C8A1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9C8A1F
6.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9C8A1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9C8A1F | 1.00 | 3.46 | 6.07 | 6.07 |
| #FFFFFF | 3.46 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.07 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.07 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#988603
Deuteranopia (green-blind)
#9D8D27
Tritanopia (blue-blind)
#A97F76
Achromatopsia (no color)
#8A8A8A
Design tokens & code
CSS
--color: #9c8a1f; /* rgb */ color: rgb(156, 138, 31); /* oklch */ color: oklch(63.1% 0.121 99.0);
Tailwind
colors: {
custom: {
50: '#bdab65',
500: '#9c8a1f',
950: '#000000',
},
}SCSS
$custom: #9c8a1f; $custom-light: #bdab65; $custom-dark: #000000;
JSON
{
"hex": "#9c8a1f",
"rgb": {
"r": 156,
"g": 138,
"b": 31
},
"hsl": {
"h": 51.36,
"s": 66.845,
"l": 36.667
},
"oklch": {
"l": 0.63129,
"c": 0.1211,
"h": 99
},
"luminance": 0.25344
}Semantic roles & 50–950 ramp
primary
#9C8A1F
secondary
#5565C1
accent
#57EA3E
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A