#9E5DEC#9E5DEC

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

Color values

HEX#9E5DEC
RGBrgb(158, 93, 236)
HSLhsl(267, 79%, 65%)
HSVhsv(267, 61%, 93%)
CMYKcmyk(33.1%, 60.6%, 0%, 7.5%)
CIE-LABlab(53.12, 54.04, -62.56)
CIE-LCHlch(53.12, 82.66, 310.82°)
OKLaboklab(61.9% 0.1088 -0.1774)
OKLCHoklch(61.9% 0.208 301.5)
XYZxyz(33.1516, 21.1538, 81.6772)
Luminance0.2115 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E5DEC #ABEC5D
analogous
#5D63EC #9E5DEC #E65DEC
triadic
#9E5DEC #EC9E5D #5DEC9E
tetradic
#9E5DEC #EC5D63 #ABEC5D #5DECE6
square
#9E5DEC #EC5D63 #ABEC5D #5DECE6
split-complementary
#9E5DEC #ECE65D #63EC5D
monochromatic
#6016B9 #7D26E6 #9E5DEC #BF94F2 #E0CBF9

Accessibility & contrast

On white

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

On black

5.23
#9E5DEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E5DEC
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E5DEC#FFFFFF#000000##000000
##9E5DEC1.004.015.235.23
#FFFFFF4.011.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF1
Deuteranopia (green-blind)
#2F7EE9
Tritanopia (blue-blind)
#8E7B9C
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #9e5dec;
/* rgb */ color: rgb(158, 93, 236);
/* oklch */ color: oklch(61.9% 0.208 301.5);
Tailwind
colors: {
  custom: {
    50: '#bf8ef3',
    500: '#9e5dec',
    950: '#000000',
  },
}
SCSS
$custom: #9e5dec;
$custom-light: #bf8ef3;
$custom-dark: #000000;
JSON
{
  "hex": "#9e5dec",
  "rgb": {
    "r": 158,
    "g": 93,
    "b": 236
  },
  "hsl": {
    "h": 267.273,
    "s": 79.006,
    "l": 64.51
  },
  "oklch": {
    "l": 0.61904,
    "c": 0.20812,
    "h": 301.5
  },
  "luminance": 0.21154
}

Semantic roles & 50–950 ramp

primary
#9E5DEC
secondary
#D5EBBA
accent
#DB0A7C
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9E5DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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