#9D9921#9D9921

#9D9921 is a light, vivid yellow. Relative luminance 0.301; OKLCH L 66.6% C 0.133 H 107.5°. Best body text is #000000 at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#9D9921
RGBrgb(157, 153, 33)
HSLhsl(58, 65%, 37%)
HSVhsv(58, 79%, 62%)
CMYKcmyk(0%, 2.5%, 79%, 38.4%)
CIE-LABlab(61.71, -12.16, 58.32)
CIE-LCHlch(61.71, 59.58, 101.78°)
OKLaboklab(66.57% -0.04 0.1269)
OKLCHoklch(66.57% 0.133 107.5)
XYZxyz(25.5714, 30.0613, 5.8940)
Luminance0.3006 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D9921 #21259D
analogous
#9D5B21 #9D9921 #639D21
triadic
#9D9921 #219D99 #99219D
tetradic
#9D9921 #219D5B #21259D #9D2163
square
#9D9921 #219D5B #21259D #9D2163
split-complementary
#9D9921 #21639D #5B219D
monochromatic
#38360C #6A6816 #9D9921 #D0CA2C #DDD95C

Accessibility & contrast

On white

2.99
#9D9921 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.01
#9D9921 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9D9921
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D9921#FFFFFF#000000##000000
##9D99211.002.997.017.01
#FFFFFF2.991.0021.0021.00
#0000007.0121.001.001.00
##0000007.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#A69300
Deuteranopia (green-blind)
#A9972B
Tritanopia (blue-blind)
#A98E83
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #9d9921;
/* rgb */ color: rgb(157, 153, 33);
/* oklch */ color: oklch(66.6% 0.133 107.5);
Tailwind
colors: {
  custom: {
    50: '#beb668',
    500: '#9d9921',
    950: '#000000',
  },
}
SCSS
$custom: #9d9921;
$custom-light: #beb668;
$custom-dark: #000000;
JSON
{
  "hex": "#9d9921",
  "rgb": {
    "r": 157,
    "g": 153,
    "b": 33
  },
  "hsl": {
    "h": 58.065,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.66572,
    "c": 0.13308,
    "h": 107.5
  },
  "luminance": 0.3006
}

Semantic roles & 50–950 ramp

primary
#9D9921
secondary
#595CC1
accent
#45E840
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131107
muted
#82807A

Preview Lab

Preview with #9D9921

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

Preview Lab → · Contrast checker → · Palette generator →

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