#9D9721#9D9721

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

Color values

HEX#9D9721
RGBrgb(157, 151, 33)
HSLhsl(57, 65%, 37%)
HSVhsv(57, 79%, 62%)
CMYKcmyk(0%, 3.8%, 79%, 38.4%)
CIE-LABlab(61.14, -11.11, 57.82)
CIE-LCHlch(61.14, 58.87, 100.87°)
OKLaboklab(66.12% -0.0371 0.1258)
OKLCHoklch(66.12% 0.131 106.4)
XYZxyz(25.2468, 29.4121, 5.7858)
Luminance0.2941 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D9721 #21279D
analogous
#9D5921 #9D9721 #659D21
triadic
#9D9721 #219D97 #97219D
tetradic
#9D9721 #219D59 #21279D #9D2165
square
#9D9721 #219D59 #21279D #9D2165
split-complementary
#9D9721 #21659D #59219D
monochromatic
#38360C #6A6616 #9D9721 #D0C82C #DDD65C

Accessibility & contrast

On white

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

On black

6.88
#9D9721 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D9721
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D9721#FFFFFF#000000##000000
##9D97211.003.056.886.88
#FFFFFF3.051.0021.0021.00
#0000006.8821.001.001.00
##0000006.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A59100
Deuteranopia (green-blind)
#A7962B
Tritanopia (blue-blind)
#A98C81
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #9d9721;
/* rgb */ color: rgb(157, 151, 33);
/* oklch */ color: oklch(66.1% 0.131 106.4);
Tailwind
colors: {
  custom: {
    50: '#beb567',
    500: '#9d9721',
    950: '#000000',
  },
}
SCSS
$custom: #9d9721;
$custom-light: #beb567;
$custom-dark: #000000;
JSON
{
  "hex": "#9d9721",
  "rgb": {
    "r": 157,
    "g": 151,
    "b": 33
  },
  "hsl": {
    "h": 57.097,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.66123,
    "c": 0.13119,
    "h": 106.4
  },
  "luminance": 0.29411
}

Semantic roles & 50–950 ramp

primary
#9D9721
secondary
#595EC1
accent
#48E840
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131107
muted
#82807A

Preview Lab

Preview with #9D9721

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

Preview Lab → · Contrast checker → · Palette generator →

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