#9E5EEA#9E5EEA

#9E5EEA is a mid, highly saturated violet. Relative luminance 0.212; OKLCH L 61.9% C 0.204 H 301.8°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#9E5EEA
RGBrgb(158, 94, 234)
HSLhsl(267, 77%, 64%)
HSVhsv(267, 60%, 92%)
CMYKcmyk(32.5%, 59.8%, 0%, 8.2%)
CIE-LABlab(53.18, 53.04, -61.33)
CIE-LCHlch(53.18, 81.08, 310.86°)
OKLaboklab(61.91% 0.1077 -0.1738)
OKLCHoklch(61.91% 0.204 301.8)
XYZxyz(32.9511, 21.2149, 80.1849)
Luminance0.2122 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E5EEA #AAEA5E
analogous
#5E64EA #9E5EEA #E45EEA
triadic
#9E5EEA #EA9E5E #5EEA9E
tetradic
#9E5EEA #EA5E64 #AAEA5E #5EEAE4
square
#9E5EEA #EA5E64 #AAEA5E #5EEAE4
split-complementary
#9E5EEA #EAE45E #64EA5E
monochromatic
#6018B6 #7D28E3 #9E5EEA #BF94F1 #DFCAF8

Accessibility & contrast

On white

4.01
#9E5EEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#9E5EEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E5EEA
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E5EEA#FFFFFF#000000##000000
##9E5EEA1.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#047EEE
Deuteranopia (green-blind)
#347EE7
Tritanopia (blue-blind)
#8F7B9B
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #9e5eea;
/* rgb */ color: rgb(158, 94, 234);
/* oklch */ color: oklch(61.9% 0.204 301.8);
Tailwind
colors: {
  custom: {
    50: '#bf8ef1',
    500: '#9e5eea',
    950: '#000000',
  },
}
SCSS
$custom: #9e5eea;
$custom-light: #bf8ef1;
$custom-dark: #000000;
JSON
{
  "hex": "#9e5eea",
  "rgb": {
    "r": 158,
    "g": 94,
    "b": 234
  },
  "hsl": {
    "h": 267.429,
    "s": 76.923,
    "l": 64.314
  },
  "oklch": {
    "l": 0.61912,
    "c": 0.20448,
    "h": 301.8
  },
  "luminance": 0.21215
}

Semantic roles & 50–950 ramp

primary
#9E5EEA
secondary
#D4EABA
accent
#D90C7C
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9E5EEA

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

Preview Lab → · Contrast checker → · Palette generator →

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