#9B8721#9B8721

#9B8721 is a light, moderate yellow. Relative luminance 0.244; OKLCH L 62.4% C 0.118 H 97.4°. Best body text is #000000 at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#9B8721
RGBrgb(155, 135, 33)
HSLhsl(50, 65%, 37%)
HSVhsv(50, 79%, 61%)
CMYKcmyk(0%, 12.9%, 78.7%, 39.2%)
CIE-LABlab(56.49, -3.36, 53.53)
CIE-LCHlch(56.49, 53.63, 93.60°)
OKLaboklab(62.38% -0.0152 0.1168)
OKLCHoklch(62.38% 0.118 97.4)
XYZxyz(22.4572, 24.4075, 4.9668)
Luminance0.2441 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8721 #21359B
analogous
#9B4A21 #9B8721 #729B21
triadic
#9B8721 #219B87 #87219B
tetradic
#9B8721 #219B4A #21359B #9B2172
square
#9B8721 #219B4A #21359B #9B2172
split-complementary
#9B8721 #21729B #4A219B
monochromatic
#362F0C #695B16 #9B8721 #CDB32C #DCC75A

Accessibility & contrast

On white

3.57
#9B8721 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.88
#9B8721 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8721
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8721#FFFFFF#000000##000000
##9B87211.003.575.885.88
#FFFFFF3.571.0021.0021.00
#0000005.8821.001.001.00
##0000005.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#95840A
Deuteranopia (green-blind)
#9A8A28
Tritanopia (blue-blind)
#A87C74
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #9b8721;
/* rgb */ color: rgb(155, 135, 33);
/* oklch */ color: oklch(62.4% 0.118 97.4);
Tailwind
colors: {
  custom: {
    50: '#bca965',
    500: '#9b8721',
    950: '#000000',
  },
}
SCSS
$custom: #9b8721;
$custom-light: #bca965;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8721",
  "rgb": {
    "r": 155,
    "g": 135,
    "b": 33
  },
  "hsl": {
    "h": 50.164,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.62383,
    "c": 0.11774,
    "h": 97.4
  },
  "luminance": 0.24406
}

Semantic roles & 50–950 ramp

primary
#9B8721
secondary
#5869C0
accent
#5BE840
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9B8721

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

Preview Lab → · Contrast checker → · Palette generator →

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