#9A9822#9A9822

#9A9822 is a light, vivid yellow. Relative luminance 0.294; OKLCH L 66.1% C 0.132 H 108.5°. Best body text is #000000 at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#9A9822
RGBrgb(154, 152, 34)
HSLhsl(59, 64%, 37%)
HSVhsv(59, 78%, 60%)
CMYKcmyk(0%, 1.3%, 77.9%, 39.6%)
CIE-LABlab(61.17, -12.94, 57.42)
CIE-LCHlch(61.17, 58.86, 102.70°)
OKLaboklab(66.08% -0.042 0.1253)
OKLCHoklch(66.08% 0.132 108.5)
XYZxyz(24.8444, 29.4428, 5.8874)
Luminance0.2944 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A9822 #22249A
analogous
#9A5C22 #9A9822 #609A22
triadic
#9A9822 #229A98 #98229A
tetradic
#9A9822 #229A5C #22249A #9A2260
square
#9A9822 #229A5C #22249A #9A2260
split-complementary
#9A9822 #22609A #5C229A
monochromatic
#36350C #686717 #9A9822 #CCC92D #DBD95B

Accessibility & contrast

On white

3.05
#9A9822 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.89
#9A9822 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A9822
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A9822#FFFFFF#000000##000000
##9A98221.003.056.896.89
#FFFFFF3.051.0021.0021.00
#0000006.8921.001.001.00
##0000006.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#A59202
Deuteranopia (green-blind)
#A7952C
Tritanopia (blue-blind)
#A58E82
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #9a9822;
/* rgb */ color: rgb(154, 152, 34);
/* oklch */ color: oklch(66.1% 0.132 108.5);
Tailwind
colors: {
  custom: {
    50: '#bbb668',
    500: '#9a9822',
    950: '#000000',
  },
}
SCSS
$custom: #9a9822;
$custom-light: #bbb668;
$custom-dark: #000000;
JSON
{
  "hex": "#9a9822",
  "rgb": {
    "r": 154,
    "g": 152,
    "b": 34
  },
  "hsl": {
    "h": 59,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.66083,
    "c": 0.13215,
    "h": 108.5
  },
  "luminance": 0.29442
}

Semantic roles & 50–950 ramp

primary
#9A9822
secondary
#585ABF
accent
#44E741
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#121107
muted
#81807A

Preview Lab

Preview with #9A9822

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

Preview Lab → · Contrast checker → · Palette generator →

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