#9D20A6#9D20A6

#9D20A6 is a mid, highly saturated purple. Relative luminance 0.110; OKLCH L 50.7% C 0.214 H 325.0°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#9D20A6
RGBrgb(157, 32, 166)
HSLhsl(296, 68%, 39%)
HSVhsv(296, 81%, 65%)
CMYKcmyk(5.4%, 80.7%, 0%, 34.9%)
CIE-LABlab(39.51, 64.47, -43.94)
CIE-LCHlch(39.51, 78.02, 325.72°)
OKLaboklab(50.7% 0.1753 -0.1226)
OKLCHoklch(50.7% 0.214 325)
XYZxyz(21.3036, 10.9557, 37.0616)
Luminance0.1095 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D20A6 #29A620
analogous
#5A20A6 #9D20A6 #A6206C
triadic
#9D20A6 #A69D20 #20A69D
tetradic
#9D20A6 #A65A20 #29A620 #206CA6
square
#9D20A6 #A65A20 #29A620 #206CA6
split-complementary
#9D20A6 #6CA620 #20A65A
monochromatic
#3C0C3F #6C1673 #9D20A6 #CB2DD6 #D860E0

Accessibility & contrast

On white

6.58
#9D20A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9D20A6
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D20A6#FFFFFF#000000##FFFFFF
##9D20A61.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A9
Deuteranopia (green-blind)
#3F62A3
Tritanopia (blue-blind)
#A13B64
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9d20a6;
/* rgb */ color: rgb(157, 32, 166);
/* oklch */ color: oklch(50.7% 0.214 325.0);
Tailwind
colors: {
  custom: {
    50: '#be6cc1',
    500: '#9d20a6',
    950: '#000000',
  },
}
SCSS
$custom: #9d20a6;
$custom-light: #be6cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#9d20a6",
  "rgb": {
    "r": 157,
    "g": 32,
    "b": 166
  },
  "hsl": {
    "h": 295.97,
    "s": 67.677,
    "l": 38.824
  },
  "oklch": {
    "l": 0.50696,
    "c": 0.21387,
    "h": 325
  },
  "luminance": 0.10954
}

Semantic roles & 50–950 ramp

primary
#9D20A6
secondary
#64C55D
accent
#EB3D49
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #9D20A6

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

Preview Lab → · Contrast checker → · Palette generator →

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