#9C802B#9C802B
#9C802B is a mid, moderate yellow. Relative luminance 0.227; OKLCH L 61.0% C 0.107 H 90.2°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).
Color values
| HEX | #9C802B |
|---|---|
| RGB | rgb(156, 128, 43) |
| HSL | hsl(45, 57%, 39%) |
| HSV | hsv(45, 72%, 61%) |
| CMYK | cmyk(0%, 17.9%, 72.4%, 38.8%) |
| CIE-LAB | lab(54.74, 1.45, 47.99) |
| CIE-LCH | lch(54.74, 48.01, 88.27°) |
| OKLab | oklab(61.04% -0.0004 0.107) |
| OKLCH | oklch(61.04% 0.107 90.2) |
| XYZ | xyz(21.8667, 22.6820, 5.5114) |
| Luminance | 0.2268 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Yellowish Brown
#9B7A01
ΔE00 3.68
Diarrhea
#9F8303
ΔE00 3.84
Puke Brown
#947706
ΔE00 4.14
Baby Poop
#937C00
ΔE00 4.24
Hazel
#8E7618
ΔE00 4.48
Dark Mustard
#A88905
ΔE00 5.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9C802B #2B479C
analogous
#9C482B #9C802B #809C2B
triadic
#9C802B #2B9C80 #802B9C
tetradic
#9C802B #2B9C48 #2B479C #9C2B80
square
#9C802B #2B9C48 #2B479C #9C2B80
split-complementary
#9C802B #2B809C #482B9C
monochromatic
#3C3111 #6C591E #9C802B #C9A63B #D6BC6B
Accessibility & contrast
On white
3.79
#9C802B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.54
#9C802B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9C802B
5.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9C802B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9C802B | 1.00 | 3.79 | 5.54 | 5.54 |
| #FFFFFF | 3.79 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.54 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.54 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8F7E1F
Deuteranopia (green-blind)
#95862F
Tritanopia (blue-blind)
#A9756F
Achromatopsia (no color)
#838383
Design tokens & code
CSS
--color: #9c802b; /* rgb */ color: rgb(156, 128, 43); /* oklch */ color: oklch(61.0% 0.107 90.2);
Tailwind
colors: {
custom: {
50: '#bda46a',
500: '#9c802b',
950: '#000000',
},
}SCSS
$custom: #9c802b; $custom-light: #bda46a; $custom-dark: #000000;
JSON
{
"hex": "#9c802b",
"rgb": {
"r": 156,
"g": 128,
"b": 43
},
"hsl": {
"h": 45.133,
"s": 56.784,
"l": 39.02
},
"oklch": {
"l": 0.61044,
"c": 0.10696,
"h": 90.2
},
"luminance": 0.22681
}Semantic roles & 50–950 ramp
primary
#9C802B
secondary
#667BBD
accent
#6DE048
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#120F07
muted
#817F7A