#9E52EA#9E52EA

#9E52EA is a mid, highly saturated violet. Relative luminance 0.192; OKLCH L 60.3% C 0.221 H 303.3°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#9E52EA
RGBrgb(158, 82, 234)
HSLhsl(270, 78%, 62%)
HSVhsv(270, 65%, 92%)
CMYKcmyk(32.5%, 65%, 0%, 8.2%)
CIE-LABlab(50.97, 59.04, -64.89)
CIE-LCHlch(50.97, 87.73, 312.30°)
OKLaboklab(60.31% 0.1212 -0.1843)
OKLCHoklch(60.31% 0.221 303.3)
XYZxyz(31.9657, 19.2442, 79.8564)
Luminance0.1924 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E52EA #9EEA52
analogous
#5252EA #9E52EA #EA52EA
triadic
#9E52EA #EA9E52 #52EA9E
tetradic
#9E52EA #EA5252 #9EEA52 #52EAEA
square
#9E52EA #EA5252 #9EEA52 #52EAEA
split-complementary
#9E52EA #EAEA52 #52EA52
monochromatic
#6115AD #7F1CE3 #9E52EA #BD89F1 #DBBFF7

Accessibility & contrast

On white

4.33
#9E52EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#9E52EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E52EA
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E52EA#FFFFFF#000000##000000
##9E52EA1.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078EF
Deuteranopia (green-blind)
#1A79E7
Tritanopia (blue-blind)
#8F7497
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #9e52ea;
/* rgb */ color: rgb(158, 82, 234);
/* oklch */ color: oklch(60.3% 0.221 303.3);
Tailwind
colors: {
  custom: {
    50: '#c087f2',
    500: '#9e52ea',
    950: '#000000',
  },
}
SCSS
$custom: #9e52ea;
$custom-light: #c087f2;
$custom-dark: #000000;
JSON
{
  "hex": "#9e52ea",
  "rgb": {
    "r": 158,
    "g": 82,
    "b": 234
  },
  "hsl": {
    "h": 270,
    "s": 78.351,
    "l": 61.961
  },
  "oklch": {
    "l": 0.60311,
    "c": 0.22056,
    "h": 303.3
  },
  "luminance": 0.19244
}

Semantic roles & 50–950 ramp

primary
#9E52EA
secondary
#CCE8B0
accent
#DB0B73
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9E52EA

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

Preview Lab → · Contrast checker → · Palette generator →

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