#9B8221#9B8221

#9B8221 is a mid, moderate yellow. Relative luminance 0.230; OKLCH L 61.3% C 0.114 H 93.7°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#9B8221
RGBrgb(155, 130, 33)
HSLhsl(48, 65%, 37%)
HSVhsv(48, 79%, 61%)
CMYKcmyk(0%, 16.1%, 78.7%, 39.2%)
CIE-LABlab(55.12, -0.60, 52.26)
CIE-LCHlch(55.12, 52.27, 90.65°)
OKLaboklab(61.3% -0.0074 0.114)
OKLCHoklch(61.3% 0.114 93.7)
XYZxyz(21.7759, 23.0449, 4.7397)
Luminance0.2304 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8221 #213A9B
analogous
#9B4521 #9B8221 #779B21
triadic
#9B8221 #219B82 #82219B
tetradic
#9B8221 #219B45 #213A9B #9B2177
square
#9B8221 #219B45 #213A9B #9B2177
split-complementary
#9B8221 #21779B #45219B
monochromatic
#362D0C #695816 #9B8221 #CDAC2C #DCC15A

Accessibility & contrast

On white

3.74
#9B8221 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#9B8221 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8221
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8221#FFFFFF#000000##000000
##9B82211.003.745.615.61
#FFFFFF3.741.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#91800D
Deuteranopia (green-blind)
#978727
Tritanopia (blue-blind)
#A87770
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #9b8221;
/* rgb */ color: rgb(155, 130, 33);
/* oklch */ color: oklch(61.3% 0.114 93.7);
Tailwind
colors: {
  custom: {
    50: '#bca565',
    500: '#9b8221',
    950: '#000000',
  },
}
SCSS
$custom: #9b8221;
$custom-light: #bca565;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8221",
  "rgb": {
    "r": 155,
    "g": 130,
    "b": 33
  },
  "hsl": {
    "h": 47.705,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.61296,
    "c": 0.11428,
    "h": 93.7
  },
  "luminance": 0.23044
}

Semantic roles & 50–950 ramp

primary
#9B8221
secondary
#586DC0
accent
#62E840
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9B8221

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#9B8221 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva