#9B9521#9B9521

#9B9521 is a light, vivid yellow. Relative luminance 0.286; OKLCH L 65.5% C 0.130 H 106.4°. Best body text is #000000 at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#9B9521
RGBrgb(155, 149, 33)
HSLhsl(57, 65%, 37%)
HSVhsv(57, 79%, 61%)
CMYKcmyk(0%, 3.9%, 78.7%, 39.2%)
CIE-LABlab(60.40, -10.94, 57.08)
CIE-LCHlch(60.40, 58.12, 100.85°)
OKLaboklab(65.49% -0.0365 0.1244)
OKLCHoklch(65.49% 0.13 106.4)
XYZxyz(24.5406, 28.5742, 5.6612)
Luminance0.2857 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B9521 #21279B
analogous
#9B5821 #9B9521 #649B21
triadic
#9B9521 #219B95 #95219B
tetradic
#9B9521 #219B58 #21279B #9B2164
square
#9B9521 #219B58 #21279B #9B2164
split-complementary
#9B9521 #21649B #58219B
monochromatic
#36340C #696416 #9B9521 #CDC62C #DCD65A

Accessibility & contrast

On white

3.13
#9B9521 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.71
#9B9521 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B9521
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B9521#FFFFFF#000000##000000
##9B95211.003.136.716.71
#FFFFFF3.131.0021.0021.00
#0000006.7121.001.001.00
##0000006.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#A28F01
Deuteranopia (green-blind)
#A5942B
Tritanopia (blue-blind)
#A78B7F
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #9b9521;
/* rgb */ color: rgb(155, 149, 33);
/* oklch */ color: oklch(65.5% 0.130 106.4);
Tailwind
colors: {
  custom: {
    50: '#bcb367',
    500: '#9b9521',
    950: '#000000',
  },
}
SCSS
$custom: #9b9521;
$custom-light: #bcb367;
$custom-dark: #000000;
JSON
{
  "hex": "#9b9521",
  "rgb": {
    "r": 155,
    "g": 149,
    "b": 33
  },
  "hsl": {
    "h": 57.049,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.65491,
    "c": 0.12961,
    "h": 106.4
  },
  "luminance": 0.28573
}

Semantic roles & 50–950 ramp

primary
#9B9521
secondary
#585DC0
accent
#48E840
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#121106
muted
#81807A

Preview Lab

Preview with #9B9521

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

Preview Lab → · Contrast checker → · Palette generator →

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