#9E2DC8#9E2DC8

#9E2DC8 is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 54.1% C 0.230 H 314.7°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#9E2DC8
RGBrgb(158, 45, 200)
HSLhsl(284, 63%, 48%)
HSVhsv(284, 78%, 78%)
CMYKcmyk(21%, 77.5%, 0%, 21.6%)
CIE-LABlab(43.24, 66.99, -57.98)
CIE-LCHlch(43.24, 88.59, 319.13°)
OKLaboklab(54.07% 0.1619 -0.1637)
OKLCHoklch(54.07% 0.23 314.7)
XYZxyz(25.4625, 13.3169, 55.8615)
Luminance0.1332 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E2DC8 #57C82D
analogous
#512DC8 #9E2DC8 #C82DA4
triadic
#9E2DC8 #C89E2D #2DC89E
tetradic
#9E2DC8 #C8512D #57C82D #2DA4C8
square
#9E2DC8 #C8512D #57C82D #2DA4C8
split-complementary
#9E2DC8 #A4C82D #2DC851
monochromatic
#4F1764 #772296 #9E2DC8 #B759DA #CC8BE5

Accessibility & contrast

On white

5.73
#9E2DC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#9E2DC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E2DC8
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E2DC8#FFFFFF#000000##FFFFFF
##9E2DC81.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CC
Deuteranopia (green-blind)
#2369C5
Tritanopia (blue-blind)
#9A517A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9e2dc8;
/* rgb */ color: rgb(158, 45, 200);
/* oklch */ color: oklch(54.1% 0.230 314.7);
Tailwind
colors: {
  custom: {
    50: '#bf73da',
    500: '#9e2dc8',
    950: '#000000',
  },
}
SCSS
$custom: #9e2dc8;
$custom-light: #bf73da;
$custom-dark: #000000;
JSON
{
  "hex": "#9e2dc8",
  "rgb": {
    "r": 158,
    "g": 45,
    "b": 200
  },
  "hsl": {
    "h": 283.742,
    "s": 63.265,
    "l": 48.039
  },
  "oklch": {
    "l": 0.54071,
    "c": 0.23023,
    "h": 314.7
  },
  "luminance": 0.13316
}

Semantic roles & 50–950 ramp

primary
#9E2DC8
secondary
#97CF82
accent
#E6416E
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9E2DC8

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

Preview Lab → · Contrast checker → · Palette generator →

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