#9B9721#9B9721

#9B9721 is a light, vivid yellow. Relative luminance 0.292; OKLCH L 65.9% C 0.132 H 107.5°. Best body text is #000000 at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#9B9721
RGBrgb(155, 151, 33)
HSLhsl(58, 65%, 37%)
HSVhsv(58, 79%, 61%)
CMYKcmyk(0%, 2.6%, 78.7%, 39.2%)
CIE-LABlab(60.97, -12.00, 57.59)
CIE-LCHlch(60.97, 58.83, 101.77°)
OKLaboklab(65.94% -0.0395 0.1254)
OKLCHoklch(65.94% 0.132 107.5)
XYZxyz(24.8597, 29.2125, 5.7676)
Luminance0.2921 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B9721 #21259B
analogous
#9B5A21 #9B9721 #629B21
triadic
#9B9721 #219B97 #97219B
tetradic
#9B9721 #219B5A #21259B #9B2162
square
#9B9721 #219B5A #21259B #9B2162
split-complementary
#9B9721 #21629B #5A219B
monochromatic
#36350C #696616 #9B9721 #CDC82C #DCD85A

Accessibility & contrast

On white

3.07
#9B9721 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.84
#9B9721 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B9721
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B9721#FFFFFF#000000##000000
##9B97211.003.076.846.84
#FFFFFF3.071.0021.0021.00
#0000006.8421.001.001.00
##0000006.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#A49100
Deuteranopia (green-blind)
#A6952B
Tritanopia (blue-blind)
#A78D81
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #9b9721;
/* rgb */ color: rgb(155, 151, 33);
/* oklch */ color: oklch(65.9% 0.132 107.5);
Tailwind
colors: {
  custom: {
    50: '#bcb567',
    500: '#9b9721',
    950: '#000000',
  },
}
SCSS
$custom: #9b9721;
$custom-light: #bcb567;
$custom-dark: #000000;
JSON
{
  "hex": "#9b9721",
  "rgb": {
    "r": 155,
    "g": 151,
    "b": 33
  },
  "hsl": {
    "h": 58.033,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.65941,
    "c": 0.13151,
    "h": 107.5
  },
  "luminance": 0.29212
}

Semantic roles & 50–950 ramp

primary
#9B9721
secondary
#585BC0
accent
#45E840
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#121107
muted
#81807A

Preview Lab

Preview with #9B9721

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

Preview Lab → · Contrast checker → · Palette generator →

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