#9E5CDB#9E5CDB

#9E5CDB is a mid, vivid violet. Relative luminance 0.200; OKLCH L 60.7% C 0.190 H 305.4°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#9E5CDB
RGBrgb(158, 92, 219)
HSLhsl(271, 64%, 61%)
HSVhsv(271, 58%, 86%)
CMYKcmyk(27.9%, 58%, 0%, 14.1%)
CIE-LABlab(51.88, 50.51, -54.96)
CIE-LCHlch(51.88, 74.65, 312.58°)
OKLaboklab(60.67% 0.1103 -0.1551)
OKLCHoklch(60.67% 0.19 305.4)
XYZxyz(30.7111, 20.0381, 69.2539)
Luminance0.2004 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E5CDB #99DB5C
analogous
#5E5CDB #9E5CDB #DB5CD8
triadic
#9E5CDB #DB9E5C #5CDB9E
tetradic
#9E5CDB #DB5E5C #99DB5C #5CD8DB
square
#9E5CDB #DB5E5C #99DB5C #5CD8DB
split-complementary
#9E5CDB #D8DB5C #5CDB5E
monochromatic
#61229A #802DCD #9E5CDB #BC8EE6 #DAC0F1

Accessibility & contrast

On white

4.19
#9E5CDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#9E5CDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E5CDB
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E5CDB#FFFFFF#000000##000000
##9E5CDB1.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#267ADF
Deuteranopia (green-blind)
#437CD8
Tritanopia (blue-blind)
#947593
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9e5cdb;
/* rgb */ color: rgb(158, 92, 219);
/* oklch */ color: oklch(60.7% 0.190 305.4);
Tailwind
colors: {
  custom: {
    50: '#be8de7',
    500: '#9e5cdb',
    950: '#000000',
  },
}
SCSS
$custom: #9e5cdb;
$custom-light: #be8de7;
$custom-dark: #000000;
JSON
{
  "hex": "#9e5cdb",
  "rgb": {
    "r": 158,
    "g": 92,
    "b": 219
  },
  "hsl": {
    "h": 271.181,
    "s": 63.819,
    "l": 60.98
  },
  "oklch": {
    "l": 0.60668,
    "c": 0.19036,
    "h": 305.4
  },
  "luminance": 0.20038
}

Semantic roles & 50–950 ramp

primary
#9E5CDB
secondary
#C8E1B1
accent
#CC1A6F
background
#FCF8FE
surface
#F8F0FC
border
#D1CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9E5CDB

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

Preview Lab → · Contrast checker → · Palette generator →

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