#9D841F#9D841F
#9D841F is a mid, moderate yellow. Relative luminance 0.238; OKLCH L 61.9% C 0.117 H 94.1°. Best body text is #000000 at 5.75:1 contrast (WCAG AA passes).
Color values
| HEX | #9D841F |
|---|---|
| RGB | rgb(157, 132, 31) |
| HSL | hsl(48, 67%, 37%) |
| HSV | hsv(48, 80%, 62%) |
| CMYK | cmyk(0%, 15.9%, 80.3%, 38.4%) |
| CIE-LAB | lab(55.86, -0.87, 53.71) |
| CIE-LCH | lch(55.86, 53.72, 90.92°) |
| OKLab | oklab(61.92% -0.0084 0.1166) |
| OKLCH | oklch(61.92% 0.117 94.1) |
| XYZ | xyz(22.4045, 23.7709, 4.7042) |
| Luminance | 0.2377 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Diarrhea
#9F8303
ΔE00 1.93
Dark Mustard
#A88905
ΔE00 3.40
Baby Poop
#937C00
ΔE00 3.46
Yellowish Brown
#9B7A01
ΔE00 4.09
Yellowy Brown
#AE8B0C
ΔE00 4.57
Puke Brown
#947706
ΔE00 4.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9D841F #1F389D
analogous
#9D451F #9D841F #779D1F
triadic
#9D841F #1F9D84 #841F9D
tetradic
#9D841F #1F9D45 #1F389D #9D1F77
square
#9D841F #1F9D45 #1F389D #9D1F77
split-complementary
#9D841F #1F779D #451F9D
monochromatic
#372E0B #6A5915 #9D841F #D0AF29 #DEC458
Accessibility & contrast
On white
3.65
#9D841F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.75
#9D841F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9D841F
5.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9D841F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9D841F | 1.00 | 3.65 | 5.75 | 5.75 |
| #FFFFFF | 3.65 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.75 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.75 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#938207
Deuteranopia (green-blind)
#998926
Tritanopia (blue-blind)
#AA7971
Achromatopsia (no color)
#868686
Design tokens & code
CSS
--color: #9d841f; /* rgb */ color: rgb(157, 132, 31); /* oklch */ color: oklch(61.9% 0.117 94.1);
Tailwind
colors: {
custom: {
50: '#bea764',
500: '#9d841f',
950: '#000000',
},
}SCSS
$custom: #9d841f; $custom-light: #bea764; $custom-dark: #000000;
JSON
{
"hex": "#9d841f",
"rgb": {
"r": 157,
"g": 132,
"b": 31
},
"hsl": {
"h": 48.095,
"s": 67.021,
"l": 36.863
},
"oklch": {
"l": 0.61923,
"c": 0.11693,
"h": 94.1
},
"luminance": 0.2377
}Semantic roles & 50–950 ramp
primary
#9D841F
secondary
#566BC2
accent
#60EA3E
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A