#9B9822#9B9822

#9B9822 is a light, vivid yellow. Relative luminance 0.295; OKLCH L 66.2% C 0.132 H 108.0°. Best body text is #000000 at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#9B9822
RGBrgb(155, 152, 34)
HSLhsl(59, 64%, 37%)
HSVhsv(59, 78%, 61%)
CMYKcmyk(0%, 1.9%, 78.1%, 39.2%)
CIE-LABlab(61.26, -12.49, 57.53)
CIE-LCHlch(61.26, 58.87, 102.25°)
OKLaboklab(66.17% -0.0408 0.1255)
OKLCHoklch(66.17% 0.132 108)
XYZxyz(25.0355, 29.5414, 5.8964)
Luminance0.2954 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B9822 #22259B
analogous
#9B5B22 #9B9822 #629B22
triadic
#9B9822 #229B98 #98229B
tetradic
#9B9822 #229B5B #22259B #9B2262
square
#9B9822 #229B5B #22259B #9B2262
split-complementary
#9B9822 #22629B #5B229B
monochromatic
#37360C #696717 #9B9822 #CDC92D #DBD85C

Accessibility & contrast

On white

3.04
#9B9822 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.91
#9B9822 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B9822
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B9822#FFFFFF#000000##000000
##9B98221.003.046.916.91
#FFFFFF3.041.0021.0021.00
#0000006.9121.001.001.00
##0000006.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#A59201
Deuteranopia (green-blind)
#A7962C
Tritanopia (blue-blind)
#A78E82
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #9b9822;
/* rgb */ color: rgb(155, 152, 34);
/* oklch */ color: oklch(66.2% 0.132 108.0);
Tailwind
colors: {
  custom: {
    50: '#bcb668',
    500: '#9b9822',
    950: '#000000',
  },
}
SCSS
$custom: #9b9822;
$custom-light: #bcb668;
$custom-dark: #000000;
JSON
{
  "hex": "#9b9822",
  "rgb": {
    "r": 155,
    "g": 152,
    "b": 34
  },
  "hsl": {
    "h": 58.512,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.66172,
    "c": 0.13197,
    "h": 108
  },
  "luminance": 0.29541
}

Semantic roles & 50–950 ramp

primary
#9B9822
secondary
#595CC0
accent
#45E741
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#121107
muted
#81807A

Preview Lab

Preview with #9B9822

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

Preview Lab → · Contrast checker → · Palette generator →

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