#9E52E6#9E52E6

#9E52E6 is a mid, highly saturated violet. Relative luminance 0.190; OKLCH L 60.0% C 0.216 H 304.2°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#9E52E6
RGBrgb(158, 82, 230)
HSLhsl(271, 75%, 61%)
HSVhsv(271, 64%, 90%)
CMYKcmyk(31.3%, 64.3%, 0%, 9.8%)
CIE-LABlab(50.71, 58.11, -63.07)
CIE-LCHlch(50.71, 85.76, 312.66°)
OKLaboklab(60.04% 0.1216 -0.1789)
OKLCHoklch(60.04% 0.216 304.2)
XYZxyz(31.3976, 19.0170, 76.8641)
Luminance0.1902 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E52E6 #9AE652
analogous
#5452E6 #9E52E6 #E652E4
triadic
#9E52E6 #E69E52 #52E69E
tetradic
#9E52E6 #E65452 #9AE652 #52E4E6
square
#9E52E6 #E65452 #9AE652 #52E4E6
split-complementary
#9E52E6 #E4E652 #52E654
monochromatic
#6118A6 #8020DB #9E52E6 #BC87EE #DABDF5

Accessibility & contrast

On white

4.37
#9E52E6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#9E52E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E52E6
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E52E6#FFFFFF#000000##000000
##9E52E61.004.374.804.80
#FFFFFF4.371.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077EB
Deuteranopia (green-blind)
#2479E3
Tritanopia (blue-blind)
#917295
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #9e52e6;
/* rgb */ color: rgb(158, 82, 230);
/* oklch */ color: oklch(60.0% 0.216 304.2);
Tailwind
colors: {
  custom: {
    50: '#bf87ef',
    500: '#9e52e6',
    950: '#000000',
  },
}
SCSS
$custom: #9e52e6;
$custom-light: #bf87ef;
$custom-dark: #000000;
JSON
{
  "hex": "#9e52e6",
  "rgb": {
    "r": 158,
    "g": 82,
    "b": 230
  },
  "hsl": {
    "h": 270.811,
    "s": 74.747,
    "l": 61.176
  },
  "oklch": {
    "l": 0.60036,
    "c": 0.21631,
    "h": 304.2
  },
  "luminance": 0.19017
}

Semantic roles & 50–950 ramp

primary
#9E52E6
secondary
#C9E6AE
accent
#D70F70
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #9E52E6

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

Preview Lab → · Contrast checker → · Palette generator →

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