#9D32B2#9D32B2

#9D32B2 is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 52.9% C 0.206 H 320.5°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#9D32B2
RGBrgb(157, 50, 178)
HSLhsl(290, 56%, 45%)
HSVhsv(290, 72%, 70%)
CMYKcmyk(11.8%, 71.9%, 0%, 30.2%)
CIE-LABlab(42.25, 60.85, -46.68)
CIE-LCHlch(42.25, 76.69, 322.50°)
OKLaboklab(52.89% 0.1587 -0.1307)
OKLCHoklch(52.89% 0.206 320.5)
XYZxyz(23.0802, 12.6648, 43.3397)
Luminance0.1266 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D32B2 #47B232
analogous
#5D32B2 #9D32B2 #B23287
triadic
#9D32B2 #B29D32 #32B29D
tetradic
#9D32B2 #B25D32 #47B232 #3287B2
square
#9D32B2 #B25D32 #47B232 #3287B2
split-complementary
#9D32B2 #87B232 #32B25D
monochromatic
#491752 #732582 #9D32B2 #BA53CF #CD82DC

Accessibility & contrast

On white

5.94
#9D32B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#9D32B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D32B2
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D32B2#FFFFFF#000000##FFFFFF
##9D32B21.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB6
Deuteranopia (green-blind)
#3F67AF
Tritanopia (blue-blind)
#9E4A6F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9d32b2;
/* rgb */ color: rgb(157, 50, 178);
/* oklch */ color: oklch(52.9% 0.206 320.5);
Tailwind
colors: {
  custom: {
    50: '#be74ca',
    500: '#9d32b2',
    950: '#000000',
  },
}
SCSS
$custom: #9d32b2;
$custom-light: #be74ca;
$custom-dark: #000000;
JSON
{
  "hex": "#9d32b2",
  "rgb": {
    "r": 157,
    "g": 50,
    "b": 178
  },
  "hsl": {
    "h": 290.156,
    "s": 56.14,
    "l": 44.706
  },
  "oklch": {
    "l": 0.52886,
    "c": 0.20562,
    "h": 320.5
  },
  "luminance": 0.12664
}

Semantic roles & 50–950 ramp

primary
#9D32B2
secondary
#87C57B
accent
#DF4861
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #9D32B2

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

Preview Lab → · Contrast checker → · Palette generator →

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