#9E5AEE#9E5AEE

#9E5AEE is a mid, highly saturated violet. Relative luminance 0.208; OKLCH L 61.6% C 0.214 H 301.5°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#9E5AEE
RGBrgb(158, 90, 238)
HSLhsl(268, 81%, 64%)
HSVhsv(268, 62%, 93%)
CMYKcmyk(33.6%, 62.2%, 0%, 6.7%)
CIE-LABlab(52.68, 56.05, -64.38)
CIE-LCHlch(52.68, 85.36, 311.04°)
OKLaboklab(61.63% 0.1121 -0.1828)
OKLCHoklch(61.63% 0.214 301.5)
XYZxyz(33.1857, 20.7543, 83.1300)
Luminance0.2075 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E5AEE #AAEE5A
analogous
#5A60EE #9E5AEE #E85AEE
triadic
#9E5AEE #EE9E5A #5AEE9E
tetradic
#9E5AEE #EE5A60 #AAEE5A #5AEEE8
square
#9E5AEE #EE5A60 #AAEE5A #5AEEE8
split-complementary
#9E5AEE #EEE85A #60EE5A
monochromatic
#6013BA #7D23E8 #9E5AEE #BF91F4 #DFC9F9

Accessibility & contrast

On white

4.08
#9E5AEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#9E5AEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E5AEE
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E5AEE#FFFFFF#000000##000000
##9E5AEE1.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF3
Deuteranopia (green-blind)
#257DEB
Tritanopia (blue-blind)
#8E7A9C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9e5aee;
/* rgb */ color: rgb(158, 90, 238);
/* oklch */ color: oklch(61.6% 0.214 301.5);
Tailwind
colors: {
  custom: {
    50: '#c08cf4',
    500: '#9e5aee',
    950: '#000000',
  },
}
SCSS
$custom: #9e5aee;
$custom-light: #c08cf4;
$custom-dark: #000000;
JSON
{
  "hex": "#9e5aee",
  "rgb": {
    "r": 158,
    "g": 90,
    "b": 238
  },
  "hsl": {
    "h": 267.568,
    "s": 81.319,
    "l": 64.314
  },
  "oklch": {
    "l": 0.61627,
    "c": 0.21442,
    "h": 301.5
  },
  "luminance": 0.20754
}

Semantic roles & 50–950 ramp

primary
#9E5AEE
secondary
#D4ECB8
accent
#DE087B
background
#FCF8FF
surface
#F8F0FE
border
#D1CBD6
text
#130C17
muted
#827D85

Preview Lab

Preview with #9E5AEE

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

Preview Lab → · Contrast checker → · Palette generator →

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