#9E52EB#9E52EB

#9E52EB is a mid, highly saturated violet. Relative luminance 0.193; OKLCH L 60.4% C 0.222 H 303.1°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#9E52EB
RGBrgb(158, 82, 235)
HSLhsl(270, 79%, 62%)
HSVhsv(270, 65%, 92%)
CMYKcmyk(32.8%, 65.1%, 0%, 7.8%)
CIE-LABlab(51.04, 59.27, -65.35)
CIE-LCHlch(51.04, 88.23, 312.21°)
OKLaboklab(60.38% 0.1211 -0.1856)
OKLCHoklch(60.38% 0.222 303.1)
XYZxyz(32.1098, 19.3019, 80.6152)
Luminance0.1930 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E52EB #9FEB52
analogous
#5253EB #9E52EB #EB52EB
triadic
#9E52EB #EB9E52 #52EB9E
tetradic
#9E52EB #EB5253 #9FEB52 #52EBEB
square
#9E52EB #EB5253 #9FEB52 #52EBEB
split-complementary
#9E52EB #EBEB52 #53EB52
monochromatic
#6114AE #7F1BE5 #9E52EB #BD89F1 #DCC0F8

Accessibility & contrast

On white

4.32
#9E52EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#9E52EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E52EB
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E52EB#FFFFFF#000000##000000
##9E52EB1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078F0
Deuteranopia (green-blind)
#1779E8
Tritanopia (blue-blind)
#8F7498
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #9e52eb;
/* rgb */ color: rgb(158, 82, 235);
/* oklch */ color: oklch(60.4% 0.222 303.1);
Tailwind
colors: {
  custom: {
    50: '#c087f2',
    500: '#9e52eb',
    950: '#000000',
  },
}
SCSS
$custom: #9e52eb;
$custom-light: #c087f2;
$custom-dark: #000000;
JSON
{
  "hex": "#9e52eb",
  "rgb": {
    "r": 158,
    "g": 82,
    "b": 235
  },
  "hsl": {
    "h": 269.804,
    "s": 79.275,
    "l": 62.157
  },
  "oklch": {
    "l": 0.6038,
    "c": 0.22163,
    "h": 303.1
  },
  "luminance": 0.19302
}

Semantic roles & 50–950 ramp

primary
#9E52EB
secondary
#CDE8B0
accent
#DC0A73
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9E52EB

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

Preview Lab → · Contrast checker → · Palette generator →

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