#9E5CEC#9E5CEC

#9E5CEC is a mid, highly saturated violet. Relative luminance 0.210; OKLCH L 61.8% C 0.209 H 301.6°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#9E5CEC
RGBrgb(158, 92, 236)
HSLhsl(268, 79%, 64%)
HSVhsv(268, 61%, 93%)
CMYKcmyk(33.1%, 61%, 0%, 7.5%)
CIE-LABlab(52.93, 54.55, -62.86)
CIE-LCHlch(52.93, 83.23, 310.95°)
OKLaboklab(61.77% 0.1099 -0.1783)
OKLCHoklch(61.77% 0.209 301.6)
XYZxyz(33.0644, 20.9794, 81.6481)
Luminance0.2098 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E5CEC #AAEC5C
analogous
#5C62EC #9E5CEC #E65CEC
triadic
#9E5CEC #EC9E5C #5CEC9E
tetradic
#9E5CEC #EC5C62 #AAEC5C #5CECE6
square
#9E5CEC #EC5C62 #AAEC5C #5CECE6
split-complementary
#9E5CEC #ECE65C #62EC5C
monochromatic
#6015B8 #7D25E6 #9E5CEC #BF93F2 #DFCAF9

Accessibility & contrast

On white

4.04
#9E5CEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#9E5CEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E5CEC
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E5CEC#FFFFFF#000000##000000
##9E5CEC1.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF1
Deuteranopia (green-blind)
#2D7EE9
Tritanopia (blue-blind)
#8E7B9C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9e5cec;
/* rgb */ color: rgb(158, 92, 236);
/* oklch */ color: oklch(61.8% 0.209 301.6);
Tailwind
colors: {
  custom: {
    50: '#bf8df3',
    500: '#9e5cec',
    950: '#000000',
  },
}
SCSS
$custom: #9e5cec;
$custom-light: #bf8df3;
$custom-dark: #000000;
JSON
{
  "hex": "#9e5cec",
  "rgb": {
    "r": 158,
    "g": 92,
    "b": 236
  },
  "hsl": {
    "h": 267.5,
    "s": 79.121,
    "l": 64.314
  },
  "oklch": {
    "l": 0.61766,
    "c": 0.20949,
    "h": 301.6
  },
  "luminance": 0.2098
}

Semantic roles & 50–950 ramp

primary
#9E5CEC
secondary
#D4EBB9
accent
#DB0A7B
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9E5CEC

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

Preview Lab → · Contrast checker → · Palette generator →

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