#9B821F#9B821F
#9B821F is a mid, moderate yellow. Relative luminance 0.230; OKLCH L 61.3% C 0.115 H 93.9°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).
Color values
| HEX | #9B821F |
|---|---|
| RGB | rgb(155, 130, 31) |
| HSL | hsl(48, 67%, 36%) |
| HSV | hsv(48, 80%, 61%) |
| CMYK | cmyk(0%, 16.1%, 80%, 39.2%) |
| CIE-LAB | lab(55.11, -0.68, 52.96) |
| CIE-LCH | lch(55.11, 52.96, 90.73°) |
| OKLab | oklab(61.28% -0.0078 0.1151) |
| OKLCH | oklch(61.28% 0.115 93.9) |
| XYZ | xyz(21.7488, 23.0340, 4.5965) |
| Luminance | 0.2303 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Diarrhea
#9F8303
ΔE00 2.17
Baby Poop
#937C00
ΔE00 2.95
Yellowish Brown
#9B7A01
ΔE00 3.62
Dark Mustard
#A88905
ΔE00 4.00
Puke Brown
#947706
ΔE00 4.11
Hazel
#8E7618
ΔE00 4.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9B821F #1F389B
analogous
#9B441F #9B821F #769B1F
triadic
#9B821F #1F9B82 #821F9B
tetradic
#9B821F #1F9B44 #1F389B #9B1F76
square
#9B821F #1F9B44 #1F389B #9B1F76
split-complementary
#9B821F #1F769B #441F9B
monochromatic
#352C0B #685715 #9B821F #CEAD29 #DDC257
Accessibility & contrast
On white
3.75
#9B821F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.61
#9B821F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9B821F
5.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9B821F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9B821F | 1.00 | 3.75 | 5.61 | 5.61 |
| #FFFFFF | 3.75 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.61 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.61 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#918008
Deuteranopia (green-blind)
#978726
Tritanopia (blue-blind)
#A8776F
Achromatopsia (no color)
#848484
Design tokens & code
CSS
--color: #9b821f; /* rgb */ color: rgb(155, 130, 31); /* oklch */ color: oklch(61.3% 0.115 93.9);
Tailwind
colors: {
custom: {
50: '#bda564',
500: '#9b821f',
950: '#000000',
},
}SCSS
$custom: #9b821f; $custom-light: #bda564; $custom-dark: #000000;
JSON
{
"hex": "#9b821f",
"rgb": {
"r": 155,
"g": 130,
"b": 31
},
"hsl": {
"h": 47.903,
"s": 66.667,
"l": 36.471
},
"oklch": {
"l": 0.61283,
"c": 0.11536,
"h": 93.9
},
"luminance": 0.23033
}Semantic roles & 50–950 ramp
primary
#9B821F
secondary
#556BC1
accent
#61EA3E
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A