#9D8A1F#9D8A1F
#9D8A1F is a light, vivid yellow. Relative luminance 0.254; OKLCH L 63.2% C 0.121 H 98.5°. Best body text is #000000 at 6.09:1 contrast (WCAG AA passes).
Color values
| HEX | #9D8A1F |
|---|---|
| RGB | rgb(157, 138, 31) |
| HSL | hsl(51, 67%, 37%) |
| HSV | hsv(51, 80%, 62%) |
| CMYK | cmyk(0%, 12.1%, 80.3%, 38.4%) |
| CIE-LAB | lab(57.51, -4.17, 55.20) |
| CIE-LCH | lch(57.51, 55.35, 94.32°) |
| OKLab | oklab(63.23% -0.0178 0.1198) |
| OKLCH | oklch(63.23% 0.121 98.5) |
| XYZ | xyz(23.2416, 25.4452, 4.9833) |
| Luminance | 0.2544 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Diarrhea
#9F8303
ΔE00 3.52
Dark Mustard
#A88905
ΔE00 3.90
Baby Poo
#AB9004
ΔE00 4.00
Baby Shit Brown
#AD900D
ΔE00 4.29
Baby Poop
#937C00
ΔE00 5.04
Yellowy Brown
#AE8B0C
ΔE00 5.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9D8A1F #1F329D
analogous
#9D4B1F #9D8A1F #719D1F
triadic
#9D8A1F #1F9D8A #8A1F9D
tetradic
#9D8A1F #1F9D4B #1F329D #9D1F71
square
#9D8A1F #1F9D4B #1F329D #9D1F71
split-complementary
#9D8A1F #1F719D #4B1F9D
monochromatic
#37300B #6A5D15 #9D8A1F #D0B729 #DECA58
Accessibility & contrast
On white
3.45
#9D8A1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.09
#9D8A1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9D8A1F
6.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9D8A1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9D8A1F | 1.00 | 3.45 | 6.09 | 6.09 |
| #FFFFFF | 3.45 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.09 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.09 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#988603
Deuteranopia (green-blind)
#9D8D27
Tritanopia (blue-blind)
#AA7F76
Achromatopsia (no color)
#8A8A8A
Design tokens & code
CSS
--color: #9d8a1f; /* rgb */ color: rgb(157, 138, 31); /* oklch */ color: oklch(63.2% 0.121 98.5);
Tailwind
colors: {
custom: {
50: '#beab65',
500: '#9d8a1f',
950: '#000000',
},
}SCSS
$custom: #9d8a1f; $custom-light: #beab65; $custom-dark: #000000;
JSON
{
"hex": "#9d8a1f",
"rgb": {
"r": 157,
"g": 138,
"b": 31
},
"hsl": {
"h": 50.952,
"s": 67.021,
"l": 36.863
},
"oklch": {
"l": 0.63228,
"c": 0.12113,
"h": 98.5
},
"luminance": 0.25444
}Semantic roles & 50–950 ramp
primary
#9D8A1F
secondary
#5666C2
accent
#58EA3E
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A