#9D21A4#9D21A4

#9D21A4 is a mid, highly saturated purple. Relative luminance 0.109; OKLCH L 50.6% C 0.211 H 325.7°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#9D21A4
RGBrgb(157, 33, 164)
HSLhsl(297, 66%, 39%)
HSVhsv(297, 80%, 64%)
CMYKcmyk(4.3%, 79.9%, 0%, 35.7%)
CIE-LABlab(39.48, 63.87, -42.79)
CIE-LCHlch(39.48, 76.88, 326.18°)
OKLaboklab(50.64% 0.1747 -0.1192)
OKLCHoklch(50.64% 0.211 325.7)
XYZxyz(21.1489, 10.9376, 36.1120)
Luminance0.1094 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D21A4 #28A421
analogous
#5B21A4 #9D21A4 #A42169
triadic
#9D21A4 #A49D21 #21A49D
tetradic
#9D21A4 #A45B21 #28A421 #2169A4
square
#9D21A4 #A45B21 #28A421 #2169A4
split-complementary
#9D21A4 #69A421 #21A45B
monochromatic
#3B0C3E #6C1771 #9D21A4 #CC2DD5 #D860DF

Accessibility & contrast

On white

6.59
#9D21A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#9D21A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D21A4
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D21A4#FFFFFF#000000##FFFFFF
##9D21A41.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A7
Deuteranopia (green-blind)
#4162A1
Tritanopia (blue-blind)
#A13A63
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9d21a4;
/* rgb */ color: rgb(157, 33, 164);
/* oklch */ color: oklch(50.6% 0.211 325.7);
Tailwind
colors: {
  custom: {
    50: '#be6dbf',
    500: '#9d21a4',
    950: '#000000',
  },
}
SCSS
$custom: #9d21a4;
$custom-light: #be6dbf;
$custom-dark: #000000;
JSON
{
  "hex": "#9d21a4",
  "rgb": {
    "r": 157,
    "g": 33,
    "b": 164
  },
  "hsl": {
    "h": 296.794,
    "s": 66.497,
    "l": 38.627
  },
  "oklch": {
    "l": 0.50635,
    "c": 0.21148,
    "h": 325.7
  },
  "luminance": 0.10936
}

Semantic roles & 50–950 ramp

primary
#9D21A4
secondary
#62C45D
accent
#E93E48
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #9D21A4

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

Preview Lab → · Contrast checker → · Palette generator →

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