#9F2DC2#9F2DC2

#9F2DC2 is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.8% C 0.225 H 316.7°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#9F2DC2
RGBrgb(159, 45, 194)
HSLhsl(286, 62%, 47%)
HSVhsv(286, 77%, 76%)
CMYKcmyk(18%, 76.8%, 0%, 23.9%)
CIE-LABlab(42.98, 66.02, -54.89)
CIE-LCHlch(42.98, 85.86, 320.26°)
OKLaboklab(53.79% 0.164 -0.1546)
OKLCHoklch(53.79% 0.225 316.7)
XYZxyz(24.9726, 13.1438, 52.2500)
Luminance0.1314 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2DC2 #50C22D
analogous
#552DC2 #9F2DC2 #C22D9B
triadic
#9F2DC2 #C29F2D #2DC29F
tetradic
#9F2DC2 #C2552D #50C22D #2D9BC2
square
#9F2DC2 #C2552D #50C22D #2D9BC2
split-complementary
#9F2DC2 #9BC22D #2DC255
monochromatic
#4E165F #762190 #9F2DC2 #B955D7 #CD86E3

Accessibility & contrast

On white

5.79
#9F2DC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#9F2DC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2DC2
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2DC2#FFFFFF#000000##FFFFFF
##9F2DC21.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC6
Deuteranopia (green-blind)
#2E69BF
Tritanopia (blue-blind)
#9D4E77
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9f2dc2;
/* rgb */ color: rgb(159, 45, 194);
/* oklch */ color: oklch(53.8% 0.225 316.7);
Tailwind
colors: {
  custom: {
    50: '#c073d5',
    500: '#9f2dc2',
    950: '#000000',
  },
}
SCSS
$custom: #9f2dc2;
$custom-light: #c073d5;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2dc2",
  "rgb": {
    "r": 159,
    "g": 45,
    "b": 194
  },
  "hsl": {
    "h": 285.906,
    "s": 62.343,
    "l": 46.863
  },
  "oklch": {
    "l": 0.5379,
    "c": 0.22544,
    "h": 316.7
  },
  "luminance": 0.13143
}

Semantic roles & 50–950 ramp

primary
#9F2DC2
secondary
#91CD7E
accent
#E54269
background
#FCF7FD
surface
#F8EDFA
border
#D1C8D3
text
#130914
muted
#827B83

Preview Lab

Preview with #9F2DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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