#9B8A2A#9B8A2A
#9B8A2A is a light, moderate yellow. Relative luminance 0.253; OKLCH L 63.1% C 0.115 H 98.9°. Best body text is #000000 at 6.06:1 contrast (WCAG AA passes).
Color values
| HEX | #9B8A2A |
|---|---|
| RGB | rgb(155, 138, 42) |
| HSL | hsl(51, 57%, 39%) |
| HSV | hsv(51, 73%, 61%) |
| CMYK | cmyk(0%, 11%, 72.9%, 39.2%) |
| CIE-LAB | lab(57.38, -4.60, 50.99) |
| CIE-LCH | lch(57.38, 51.20, 95.16°) |
| OKLab | oklab(63.1% -0.0178 0.1132) |
| OKLCH | oklch(63.1% 0.115 98.9) |
| XYZ | xyz(23.0251, 25.3138, 5.8633) |
| Luminance | 0.2531 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Diarrhea
#9F8303
ΔE00 4.42
Dark Mustard
#A88905
ΔE00 4.96
Baby Poo
#AB9004
ΔE00 5.09
Baby Shit Brown
#AD900D
ΔE00 5.30
Baby Poop
#937C00
ΔE00 5.42
Yellowy Brown
#AE8B0C
ΔE00 6.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9B8A2A #2A3B9B
analogous
#9B512A #9B8A2A #739B2A
triadic
#9B8A2A #2A9B8A #8A2A9B
tetradic
#9B8A2A #2A9B51 #2A3B9B #9B2A73
square
#9B8A2A #2A9B51 #2A3B9B #9B2A73
split-complementary
#9B8A2A #2A739B #512A9B
monochromatic
#3B3410 #6B5F1D #9B8A2A #C9B439 #D6C669
Accessibility & contrast
On white
3.46
#9B8A2A on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.06
#9B8A2A on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9B8A2A
6.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9B8A2A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9B8A2A | 1.00 | 3.46 | 6.06 | 6.06 |
| #FFFFFF | 3.46 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.06 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.06 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#98861B
Deuteranopia (green-blind)
#9C8C30
Tritanopia (blue-blind)
#A78077
Achromatopsia (no color)
#8A8A8A
Design tokens & code
CSS
--color: #9b8a2a; /* rgb */ color: rgb(155, 138, 42); /* oklch */ color: oklch(63.1% 0.115 98.9);
Tailwind
colors: {
custom: {
50: '#bcab6a',
500: '#9b8a2a',
950: '#000000',
},
}SCSS
$custom: #9b8a2a; $custom-light: #bcab6a; $custom-dark: #000000;
JSON
{
"hex": "#9b8a2a",
"rgb": {
"r": 155,
"g": 138,
"b": 42
},
"hsl": {
"h": 50.973,
"s": 57.36,
"l": 38.627
},
"oklch": {
"l": 0.63104,
"c": 0.11455,
"h": 98.9
},
"luminance": 0.25313
}Semantic roles & 50–950 ramp
primary
#9B8A2A
secondary
#6471BD
accent
#5EE147
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#121007
muted
#817F7A