#9D8D21#9D8D21

#9D8D21 is a light, vivid yellow. Relative luminance 0.263; OKLCH L 63.9% C 0.122 H 100.4°. Best body text is #000000 at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#9D8D21
RGBrgb(157, 141, 33)
HSLhsl(52, 65%, 37%)
HSVhsv(52, 79%, 62%)
CMYKcmyk(0%, 10.2%, 79%, 38.4%)
CIE-LABlab(58.35, -5.73, 55.29)
CIE-LCHlch(58.35, 55.59, 95.92°)
OKLaboklab(63.9% -0.022 0.1204)
OKLCHoklch(63.9% 0.122 100.4)
XYZxyz(23.7052, 26.3288, 5.2719)
Luminance0.2633 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8D21 #21319D
analogous
#9D4F21 #9D8D21 #6F9D21
triadic
#9D8D21 #219D8D #8D219D
tetradic
#9D8D21 #219D4F #21319D #9D216F
square
#9D8D21 #219D4F #21319D #9D216F
split-complementary
#9D8D21 #216F9D #4F219D
monochromatic
#38320C #6A6016 #9D8D21 #D0BA2C #DDCC5C

Accessibility & contrast

On white

3.35
#9D8D21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.27
#9D8D21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8D21
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8D21#FFFFFF#000000##000000
##9D8D211.003.356.276.27
#FFFFFF3.351.0021.0021.00
#0000006.2721.001.001.00
##0000006.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8906
Deuteranopia (green-blind)
#A08F29
Tritanopia (blue-blind)
#AA8279
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9d8d21;
/* rgb */ color: rgb(157, 141, 33);
/* oklch */ color: oklch(63.9% 0.122 100.4);
Tailwind
colors: {
  custom: {
    50: '#beae66',
    500: '#9d8d21',
    950: '#000000',
  },
}
SCSS
$custom: #9d8d21;
$custom-light: #beae66;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8d21",
  "rgb": {
    "r": 157,
    "g": 141,
    "b": 33
  },
  "hsl": {
    "h": 52.258,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.63899,
    "c": 0.12242,
    "h": 100.4
  },
  "luminance": 0.26328
}

Semantic roles & 50–950 ramp

primary
#9D8D21
secondary
#5966C1
accent
#55E840
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9D8D21

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

Preview Lab → · Contrast checker → · Palette generator →

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