#9E5CEA#9E5CEA

#9E5CEA is a mid, highly saturated violet. Relative luminance 0.209; OKLCH L 61.6% C 0.207 H 302.1°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#9E5CEA
RGBrgb(158, 92, 234)
HSLhsl(268, 77%, 64%)
HSVhsv(268, 61%, 92%)
CMYKcmyk(32.5%, 60.7%, 0%, 8.2%)
CIE-LABlab(52.80, 54.07, -61.94)
CIE-LCHlch(52.80, 82.22, 311.12°)
OKLaboklab(61.63% 0.11 -0.1756)
OKLCHoklch(61.63% 0.207 302.1)
XYZxyz(32.7755, 20.8638, 80.1264)
Luminance0.2086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E5CEA #A8EA5C
analogous
#5C61EA #9E5CEA #E55CEA
triadic
#9E5CEA #EA9E5C #5CEA9E
tetradic
#9E5CEA #EA5C61 #A8EA5C #5CEAE5
square
#9E5CEA #EA5C61 #A8EA5C #5CEAE5
split-complementary
#9E5CEA #EAE55C #61EA5C
monochromatic
#6017B4 #7E26E3 #9E5CEA #BE92F1 #DFC8F8

Accessibility & contrast

On white

4.06
#9E5CEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#9E5CEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E5CEA
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E5CEA#FFFFFF#000000##000000
##9E5CEA1.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DEF
Deuteranopia (green-blind)
#317DE7
Tritanopia (blue-blind)
#8F7A9B
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9e5cea;
/* rgb */ color: rgb(158, 92, 234);
/* oklch */ color: oklch(61.6% 0.207 302.1);
Tailwind
colors: {
  custom: {
    50: '#bf8df1',
    500: '#9e5cea',
    950: '#000000',
  },
}
SCSS
$custom: #9e5cea;
$custom-light: #bf8df1;
$custom-dark: #000000;
JSON
{
  "hex": "#9e5cea",
  "rgb": {
    "r": 158,
    "g": 92,
    "b": 234
  },
  "hsl": {
    "h": 267.887,
    "s": 77.174,
    "l": 63.922
  },
  "oklch": {
    "l": 0.61633,
    "c": 0.20725,
    "h": 302.1
  },
  "luminance": 0.20864
}

Semantic roles & 50–950 ramp

primary
#9E5CEA
secondary
#D3EAB8
accent
#D90C7A
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9E5CEA

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

Preview Lab → · Contrast checker → · Palette generator →

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