#9E5CD2#9E5CD2

#9E5CD2 is a mid, vivid violet. Relative luminance 0.196; OKLCH L 60.1% C 0.180 H 307.7°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#9E5CD2
RGBrgb(158, 92, 210)
HSLhsl(274, 57%, 59%)
HSVhsv(274, 56%, 82%)
CMYKcmyk(24.8%, 56.2%, 0%, 17.6%)
CIE-LABlab(51.36, 48.43, -50.69)
CIE-LCHlch(51.36, 70.10, 313.69°)
OKLaboklab(60.11% 0.1101 -0.1426)
OKLCHoklch(60.11% 0.18 307.7)
XYZxyz(29.5582, 19.5769, 63.1819)
Luminance0.1958 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E5CD2 #90D25C
analogous
#635CD2 #9E5CD2 #D25CCB
triadic
#9E5CD2 #D29E5C #5CD29E
tetradic
#9E5CD2 #D2635C #90D25C #5CCBD2
square
#9E5CD2 #D2635C #90D25C #5CCBD2
split-complementary
#9E5CD2 #CBD25C #5CD263
monochromatic
#60278D #8134BD #9E5CD2 #BB8CDF #D7BCEC

Accessibility & contrast

On white

4.27
#9E5CD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#9E5CD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E5CD2
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E5CD2#FFFFFF#000000##000000
##9E5CD21.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3378D6
Deuteranopia (green-blind)
#4B7BCF
Tritanopia (blue-blind)
#96728E
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #9e5cd2;
/* rgb */ color: rgb(158, 92, 210);
/* oklch */ color: oklch(60.1% 0.180 307.7);
Tailwind
colors: {
  custom: {
    50: '#be8de0',
    500: '#9e5cd2',
    950: '#000000',
  },
}
SCSS
$custom: #9e5cd2;
$custom-light: #be8de0;
$custom-dark: #000000;
JSON
{
  "hex": "#9e5cd2",
  "rgb": {
    "r": 158,
    "g": 92,
    "b": 210
  },
  "hsl": {
    "h": 273.559,
    "s": 56.731,
    "l": 59.216
  },
  "oklch": {
    "l": 0.60115,
    "c": 0.1802,
    "h": 307.7
  },
  "luminance": 0.19577
}

Semantic roles & 50–950 ramp

primary
#9E5CD2
secondary
#C2DCAE
accent
#E0488B
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #9E5CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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