#9B9922#9B9922

#9B9922 is a light, vivid yellow. Relative luminance 0.299; OKLCH L 66.4% C 0.133 H 108.5°. Best body text is #000000 at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#9B9922
RGBrgb(155, 153, 34)
HSLhsl(59, 64%, 37%)
HSVhsv(59, 78%, 61%)
CMYKcmyk(0%, 1.3%, 78.1%, 39.2%)
CIE-LABlab(61.54, -13.02, 57.79)
CIE-LCHlch(61.54, 59.24, 102.69°)
OKLaboklab(66.4% -0.0422 0.1261)
OKLCHoklch(66.4% 0.133 108.5)
XYZxyz(25.1985, 29.8673, 5.9507)
Luminance0.2987 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B9922 #22249B
analogous
#9B5C22 #9B9922 #619B22
triadic
#9B9922 #229B99 #99229B
tetradic
#9B9922 #229B5C #22249B #9B2261
square
#9B9922 #229B5C #22249B #9B2261
split-complementary
#9B9922 #22619B #5C229B
monochromatic
#37360C #696717 #9B9922 #CDCB2D #DBD95C

Accessibility & contrast

On white

3.01
#9B9922 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.97
#9B9922 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B9922
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B9922#FFFFFF#000000##000000
##9B99221.003.016.976.97
#FFFFFF3.011.0021.0021.00
#0000006.9721.001.001.00
##0000006.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#A69201
Deuteranopia (green-blind)
#A8962C
Tritanopia (blue-blind)
#A78F83
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #9b9922;
/* rgb */ color: rgb(155, 153, 34);
/* oklch */ color: oklch(66.4% 0.133 108.5);
Tailwind
colors: {
  custom: {
    50: '#bcb668',
    500: '#9b9922',
    950: '#000000',
  },
}
SCSS
$custom: #9b9922;
$custom-light: #bcb668;
$custom-dark: #000000;
JSON
{
  "hex": "#9b9922",
  "rgb": {
    "r": 155,
    "g": 153,
    "b": 34
  },
  "hsl": {
    "h": 59.008,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.66398,
    "c": 0.13294,
    "h": 108.5
  },
  "luminance": 0.29867
}

Semantic roles & 50–950 ramp

primary
#9B9922
secondary
#595BC0
accent
#44E741
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#121107
muted
#81807A

Preview Lab

Preview with #9B9922

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

Preview Lab → · Contrast checker → · Palette generator →

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