#9D9822#9D9822

#9D9822 is a light, vivid yellow. Relative luminance 0.297; OKLCH L 66.4% C 0.132 H 107.0°. Best body text is #000000 at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#9D9822
RGBrgb(157, 152, 34)
HSLhsl(58, 64%, 37%)
HSVhsv(58, 78%, 62%)
CMYKcmyk(0%, 3.2%, 78.3%, 38.4%)
CIE-LABlab(61.43, -11.60, 57.76)
CIE-LCHlch(61.43, 58.91, 101.35°)
OKLaboklab(66.35% -0.0384 0.1259)
OKLCHoklch(66.35% 0.132 107)
XYZxyz(25.4226, 29.7410, 5.9145)
Luminance0.2974 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D9822 #22279D
analogous
#9D5B22 #9D9822 #659D22
triadic
#9D9822 #229D98 #98229D
tetradic
#9D9822 #229D5B #22279D #9D2265
square
#9D9822 #229D5B #22279D #9D2265
split-complementary
#9D9822 #22659D #5B229D
monochromatic
#38370C #6B6717 #9D9822 #CFC92D #DCD75D

Accessibility & contrast

On white

3.02
#9D9822 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.95
#9D9822 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D9822
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D9822#FFFFFF#000000##000000
##9D98221.003.026.956.95
#FFFFFF3.021.0021.0021.00
#0000006.9521.001.001.00
##0000006.9521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9d9822;
/* rgb */ color: rgb(157, 152, 34);
/* oklch */ color: oklch(66.4% 0.132 107.0);
Tailwind
colors: {
  custom: {
    50: '#beb668',
    500: '#9d9822',
    950: '#000000',
  },
}
SCSS
$custom: #9d9822;
$custom-light: #beb668;
$custom-dark: #000000;
JSON
{
  "hex": "#9d9822",
  "rgb": {
    "r": 157,
    "g": 152,
    "b": 34
  },
  "hsl": {
    "h": 57.561,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.66353,
    "c": 0.13162,
    "h": 107
  },
  "luminance": 0.2974
}

Semantic roles & 50–950 ramp

primary
#9D9822
secondary
#5A5EC1
accent
#47E740
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131107
muted
#82807A

Preview Lab

Preview with #9D9822

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

Preview Lab → · Contrast checker → · Palette generator →

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