#9E5CD4#9E5CD4

#9E5CD4 is a mid, vivid violet. Relative luminance 0.197; OKLCH L 60.2% C 0.182 H 307.2°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#9E5CD4
RGBrgb(158, 92, 212)
HSLhsl(273, 58%, 60%)
HSVhsv(273, 57%, 83%)
CMYKcmyk(25.5%, 56.6%, 0%, 16.9%)
CIE-LABlab(51.47, 48.89, -51.64)
CIE-LCHlch(51.47, 71.11, 313.43°)
OKLaboklab(60.24% 0.1102 -0.1454)
OKLCHoklch(60.24% 0.182 307.2)
XYZxyz(29.8089, 19.6772, 64.5023)
Luminance0.1968 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E5CD4 #92D45C
analogous
#625CD4 #9E5CD4 #D45CCE
triadic
#9E5CD4 #D49E5C #5CD49E
tetradic
#9E5CD4 #D4625C #92D45C #5CCED4
square
#9E5CD4 #D4625C #92D45C #5CCED4
split-complementary
#9E5CD4 #CED45C #5CD462
monochromatic
#602690 #8033C0 #9E5CD4 #BB8CE1 #D8BDEE

Accessibility & contrast

On white

4.25
#9E5CD4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#9E5CD4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E5CD4
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E5CD4#FFFFFF#000000##000000
##9E5CD41.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3078D8
Deuteranopia (green-blind)
#4A7BD1
Tritanopia (blue-blind)
#96738F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #9e5cd4;
/* rgb */ color: rgb(158, 92, 212);
/* oklch */ color: oklch(60.2% 0.182 307.2);
Tailwind
colors: {
  custom: {
    50: '#be8de2',
    500: '#9e5cd4',
    950: '#000000',
  },
}
SCSS
$custom: #9e5cd4;
$custom-light: #be8de2;
$custom-dark: #000000;
JSON
{
  "hex": "#9e5cd4",
  "rgb": {
    "r": 158,
    "g": 92,
    "b": 212
  },
  "hsl": {
    "h": 273,
    "s": 58.252,
    "l": 59.608
  },
  "oklch": {
    "l": 0.60236,
    "c": 0.18246,
    "h": 307.2
  },
  "luminance": 0.19677
}

Semantic roles & 50–950 ramp

primary
#9E5CD4
secondary
#C4DDAF
accent
#E1468C
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #9E5CD4

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

Preview Lab → · Contrast checker → · Palette generator →

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