#9E28CA#9E28CA

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

Color values

HEX#9E28CA
RGBrgb(158, 40, 202)
HSLhsl(284, 67%, 47%)
HSVhsv(284, 80%, 79%)
CMYKcmyk(21.8%, 80.2%, 0%, 20.8%)
CIE-LABlab(42.84, 68.93, -59.78)
CIE-LCHlch(42.84, 91.24, 319.07°)
OKLaboklab(53.84% 0.1653 -0.169)
OKLCHoklch(53.84% 0.236 314.4)
XYZxyz(25.5182, 13.0519, 57.0407)
Luminance0.1305 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E28CA #54CA28
analogous
#4D28CA #9E28CA #CA28A5
triadic
#9E28CA #CA9E28 #28CA9E
tetradic
#9E28CA #CA4D28 #54CA28 #28A5CA
square
#9E28CA #CA4D28 #54CA28 #28A5CA
split-complementary
#9E28CA #A5CA28 #28CA4D
monochromatic
#4E1464 #761E97 #9E28CA #B752DD #CC85E7

Accessibility & contrast

On white

5.82
#9E28CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#9E28CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E28CA
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E28CA#FFFFFF#000000##FFFFFF
##9E28CA1.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCE
Deuteranopia (green-blind)
#1868C7
Tritanopia (blue-blind)
#9A507A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9e28ca;
/* rgb */ color: rgb(158, 40, 202);
/* oklch */ color: oklch(53.8% 0.236 314.4);
Tailwind
colors: {
  custom: {
    50: '#c071db',
    500: '#9e28ca',
    950: '#000000',
  },
}
SCSS
$custom: #9e28ca;
$custom-light: #c071db;
$custom-dark: #000000;
JSON
{
  "hex": "#9e28ca",
  "rgb": {
    "r": 158,
    "g": 40,
    "b": 202
  },
  "hsl": {
    "h": 283.704,
    "s": 66.942,
    "l": 47.451
  },
  "oklch": {
    "l": 0.53838,
    "c": 0.23642,
    "h": 314.4
  },
  "luminance": 0.13051
}

Semantic roles & 50–950 ramp

primary
#9E28CA
secondary
#94D07E
accent
#EA3E6D
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9E28CA

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

Preview Lab → · Contrast checker → · Palette generator →

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