#9D5ECA#9D5ECA

#9D5ECA is a mid, vivid violet. Relative luminance 0.194; OKLCH L 59.8% C 0.168 H 309.1°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#9D5ECA
RGBrgb(157, 94, 202)
HSLhsl(275, 50%, 58%)
HSVhsv(275, 53%, 79%)
CMYKcmyk(22.3%, 53.5%, 0%, 20.8%)
CIE-LABlab(51.20, 45.28, -46.38)
CIE-LCHlch(51.20, 64.82, 314.32°)
OKLaboklab(59.83% 0.1059 -0.13)
OKLCHoklch(59.83% 0.168 309.1)
XYZxyz(28.5659, 19.4382, 58.1128)
Luminance0.1944 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5ECA #8BCA5E
analogous
#675ECA #9D5ECA #CA5EC1
triadic
#9D5ECA #CA9D5E #5ECA9D
tetradic
#9D5ECA #CA675E #8BCA5E #5EC1CA
square
#9D5ECA #CA675E #8BCA5E #5EC1CA
split-complementary
#9D5ECA #C1CA5E #5ECA67
monochromatic
#5E2B83 #7F3AB1 #9D5ECA #B98CD9 #D5BAE8

Accessibility & contrast

On white

4.30
#9D5ECA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#9D5ECA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5ECA
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5ECA#FFFFFF#000000##000000
##9D5ECA1.004.304.894.89
#FFFFFF4.301.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E77CE
Deuteranopia (green-blind)
#537BC7
Tritanopia (blue-blind)
#97718B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #9d5eca;
/* rgb */ color: rgb(157, 94, 202);
/* oklch */ color: oklch(59.8% 0.168 309.1);
Tailwind
colors: {
  custom: {
    50: '#bc8eda',
    500: '#9d5eca',
    950: '#000000',
  },
}
SCSS
$custom: #9d5eca;
$custom-light: #bc8eda;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5eca",
  "rgb": {
    "r": 157,
    "g": 94,
    "b": 202
  },
  "hsl": {
    "h": 275,
    "s": 50.467,
    "l": 58.039
  },
  "oklch": {
    "l": 0.59827,
    "c": 0.16769,
    "h": 309.1
  },
  "luminance": 0.19438
}

Semantic roles & 50–950 ramp

primary
#9D5ECA
secondary
#BED7AC
accent
#DA4E88
background
#FBF8FD
surface
#F7F0FB
border
#D0CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #9D5ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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