#9E52E1#9E52E1

#9E52E1 is a mid, highly saturated violet. Relative luminance 0.187; OKLCH L 59.7% C 0.211 H 305.3°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#9E52E1
RGBrgb(158, 82, 225)
HSLhsl(272, 70%, 60%)
HSVhsv(272, 64%, 88%)
CMYKcmyk(29.8%, 63.6%, 0%, 11.8%)
CIE-LABlab(50.38, 56.95, -60.77)
CIE-LCHlch(50.38, 83.29, 313.14°)
OKLaboklab(59.7% 0.122 -0.1721)
OKLCHoklch(59.7% 0.211 305.3)
XYZxyz(30.7055, 18.7401, 73.2192)
Luminance0.1874 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E52E1 #95E152
analogous
#5652E1 #9E52E1 #E152DC
triadic
#9E52E1 #E19E52 #52E19E
tetradic
#9E52E1 #E15652 #95E152 #52DCE1
square
#9E52E1 #E15652 #95E152 #52DCE1
split-complementary
#9E52E1 #DCE152 #52E156
monochromatic
#601B9D #8024D1 #9E52E1 #BB86EA #D8BAF3

Accessibility & contrast

On white

4.42
#9E52E1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#9E52E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E52E1
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E52E1#FFFFFF#000000##000000
##9E52E11.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076E5
Deuteranopia (green-blind)
#2D78DE
Tritanopia (blue-blind)
#927092
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #9e52e1;
/* rgb */ color: rgb(158, 82, 225);
/* oklch */ color: oklch(59.7% 0.211 305.3);
Tailwind
colors: {
  custom: {
    50: '#bf87eb',
    500: '#9e52e1',
    950: '#000000',
  },
}
SCSS
$custom: #9e52e1;
$custom-light: #bf87eb;
$custom-dark: #000000;
JSON
{
  "hex": "#9e52e1",
  "rgb": {
    "r": 158,
    "g": 82,
    "b": 225
  },
  "hsl": {
    "h": 271.888,
    "s": 70.443,
    "l": 60.196
  },
  "oklch": {
    "l": 0.59698,
    "c": 0.21097,
    "h": 305.3
  },
  "luminance": 0.1874
}

Semantic roles & 50–950 ramp

primary
#9E52E1
secondary
#C6E3AC
accent
#D2136D
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #9E52E1

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

Preview Lab → · Contrast checker → · Palette generator →

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