#9E5AEC#9E5AEC

#9E5AEC is a mid, highly saturated violet. Relative luminance 0.206; OKLCH L 61.5% C 0.212 H 301.9°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#9E5AEC
RGBrgb(158, 90, 236)
HSLhsl(268, 79%, 64%)
HSVhsv(268, 62%, 93%)
CMYKcmyk(33.1%, 61.9%, 0%, 7.5%)
CIE-LABlab(52.55, 55.57, -63.47)
CIE-LCHlch(52.55, 84.36, 311.20°)
OKLaboklab(61.49% 0.1122 -0.1801)
OKLCHoklch(61.49% 0.212 301.9)
XYZxyz(32.8935, 20.6375, 81.5911)
Luminance0.2064 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E5AEC #A8EC5A
analogous
#5A5FEC #9E5AEC #E75AEC
triadic
#9E5AEC #EC9E5A #5AEC9E
tetradic
#9E5AEC #EC5A5F #A8EC5A #5AECE7
square
#9E5AEC #EC5A5F #A8EC5A #5AECE7
split-complementary
#9E5AEC #ECE75A #5FEC5A
monochromatic
#6015B7 #7E23E6 #9E5AEC #BE91F2 #DFC8F9

Accessibility & contrast

On white

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

On black

5.13
#9E5AEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E5AEC
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E5AEC#FFFFFF#000000##000000
##9E5AEC1.004.105.135.13
#FFFFFF4.101.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF1
Deuteranopia (green-blind)
#297DE9
Tritanopia (blue-blind)
#8E799B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9e5aec;
/* rgb */ color: rgb(158, 90, 236);
/* oklch */ color: oklch(61.5% 0.212 301.9);
Tailwind
colors: {
  custom: {
    50: '#bf8cf3',
    500: '#9e5aec',
    950: '#000000',
  },
}
SCSS
$custom: #9e5aec;
$custom-light: #bf8cf3;
$custom-dark: #000000;
JSON
{
  "hex": "#9e5aec",
  "rgb": {
    "r": 158,
    "g": 90,
    "b": 236
  },
  "hsl": {
    "h": 267.945,
    "s": 79.348,
    "l": 63.922
  },
  "oklch": {
    "l": 0.61492,
    "c": 0.2122,
    "h": 301.9
  },
  "luminance": 0.20638
}

Semantic roles & 50–950 ramp

primary
#9E5AEC
secondary
#D3EBB7
accent
#DC0A7A
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9E5AEC

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

Preview Lab → · Contrast checker → · Palette generator →

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