#9D2EC1#9D2EC1

#9D2EC1 is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.5% C 0.223 H 316.2°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#9D2EC1
RGBrgb(157, 46, 193)
HSLhsl(285, 62%, 47%)
HSVhsv(285, 76%, 76%)
CMYKcmyk(18.7%, 76.2%, 0%, 24.3%)
CIE-LABlab(42.72, 65.12, -54.74)
CIE-LCHlch(42.72, 85.07, 319.95°)
OKLaboklab(53.53% 0.1609 -0.1543)
OKLCHoklch(53.53% 0.223 316.2)
XYZxyz(24.5058, 12.9733, 51.6550)
Luminance0.1297 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2EC1 #52C12E
analogous
#542EC1 #9D2EC1 #C12E9C
triadic
#9D2EC1 #C19D2E #2EC19D
tetradic
#9D2EC1 #C1542E #52C12E #2E9CC1
square
#9D2EC1 #C1542E #52C12E #2E9CC1
split-complementary
#9D2EC1 #9CC12E #2EC154
monochromatic
#4D165E #752290 #9D2EC1 #B756D7 #CC87E2

Accessibility & contrast

On white

5.84
#9D2EC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#9D2EC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2EC1
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2EC1#FFFFFF#000000##FFFFFF
##9D2EC11.005.843.595.84
#FFFFFF5.841.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC5
Deuteranopia (green-blind)
#2D68BE
Tritanopia (blue-blind)
#9B4F76
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9d2ec1;
/* rgb */ color: rgb(157, 46, 193);
/* oklch */ color: oklch(53.5% 0.223 316.2);
Tailwind
colors: {
  custom: {
    50: '#be73d4',
    500: '#9d2ec1',
    950: '#000000',
  },
}
SCSS
$custom: #9d2ec1;
$custom-light: #be73d4;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2ec1",
  "rgb": {
    "r": 157,
    "g": 46,
    "b": 193
  },
  "hsl": {
    "h": 285.306,
    "s": 61.506,
    "l": 46.863
  },
  "oklch": {
    "l": 0.53527,
    "c": 0.22289,
    "h": 316.2
  },
  "luminance": 0.12972
}

Semantic roles & 50–950 ramp

primary
#9D2EC1
secondary
#92CC7F
accent
#E5436B
background
#FCF7FD
surface
#F8EDFA
border
#D1C8D3
text
#130914
muted
#827B83

Preview Lab

Preview with #9D2EC1

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

Preview Lab → · Contrast checker → · Palette generator →

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