#9E5AEB#9E5AEB

#9E5AEB is a mid, highly saturated violet. Relative luminance 0.206; OKLCH L 61.4% C 0.211 H 302.1°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#9E5AEB
RGBrgb(158, 90, 235)
HSLhsl(268, 78%, 64%)
HSVhsv(268, 62%, 92%)
CMYKcmyk(32.8%, 61.7%, 0%, 7.8%)
CIE-LABlab(52.49, 55.33, -63.01)
CIE-LCHlch(52.49, 83.85, 311.29°)
OKLaboklab(61.43% 0.1123 -0.1788)
OKLCHoklch(61.43% 0.211 302.1)
XYZxyz(32.7486, 20.5795, 80.8281)
Luminance0.2058 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E5AEB #A7EB5A
analogous
#5A5EEB #9E5AEB #E65AEB
triadic
#9E5AEB #EB9E5A #5AEB9E
tetradic
#9E5AEB #EB5A5E #A7EB5A #5AEBE6
square
#9E5AEB #EB5A5E #A7EB5A #5AEBE6
split-complementary
#9E5AEB #EBE65A #5EEB5A
monochromatic
#6016B5 #7E23E4 #9E5AEB #BE91F2 #DEC7F8

Accessibility & contrast

On white

4.10
#9E5AEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#9E5AEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E5AEB
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E5AEB#FFFFFF#000000##000000
##9E5AEB1.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF0
Deuteranopia (green-blind)
#2B7DE8
Tritanopia (blue-blind)
#8F799A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9e5aeb;
/* rgb */ color: rgb(158, 90, 235);
/* oklch */ color: oklch(61.4% 0.211 302.1);
Tailwind
colors: {
  custom: {
    50: '#bf8cf2',
    500: '#9e5aeb',
    950: '#000000',
  },
}
SCSS
$custom: #9e5aeb;
$custom-light: #bf8cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#9e5aeb",
  "rgb": {
    "r": 158,
    "g": 90,
    "b": 235
  },
  "hsl": {
    "h": 268.138,
    "s": 78.378,
    "l": 63.725
  },
  "oklch": {
    "l": 0.61425,
    "c": 0.21109,
    "h": 302.1
  },
  "luminance": 0.2058
}

Semantic roles & 50–950 ramp

primary
#9E5AEB
secondary
#D2EAB7
accent
#DB0B79
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9E5AEB

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

Preview Lab → · Contrast checker → · Palette generator →

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