#9D5CD2#9D5CD2

#9D5CD2 is a mid, vivid violet. Relative luminance 0.195; OKLCH L 60.0% C 0.180 H 307.2°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#9D5CD2
RGBrgb(157, 92, 210)
HSLhsl(273, 57%, 59%)
HSVhsv(273, 56%, 82%)
CMYKcmyk(25.2%, 56.2%, 0%, 17.6%)
CIE-LABlab(51.24, 48.18, -50.88)
CIE-LCHlch(51.24, 70.07, 313.44°)
OKLaboklab(60% 0.1089 -0.1432)
OKLCHoklch(60% 0.18 307.2)
XYZxyz(29.3622, 19.4759, 63.1727)
Luminance0.1948 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5CD2 #91D25C
analogous
#625CD2 #9D5CD2 #D25CCC
triadic
#9D5CD2 #D29D5C #5CD29D
tetradic
#9D5CD2 #D2625C #91D25C #5CCCD2
square
#9D5CD2 #D2625C #91D25C #5CCCD2
split-complementary
#9D5CD2 #CCD25C #5CD262
monochromatic
#5F278D #7F34BD #9D5CD2 #BA8CDF #D7BCEC

Accessibility & contrast

On white

4.29
#9D5CD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#9D5CD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5CD2
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5CD2#FFFFFF#000000##000000
##9D5CD21.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3278D6
Deuteranopia (green-blind)
#4A7BCF
Tritanopia (blue-blind)
#95728E
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #9d5cd2;
/* rgb */ color: rgb(157, 92, 210);
/* oklch */ color: oklch(60.0% 0.180 307.2);
Tailwind
colors: {
  custom: {
    50: '#bd8de0',
    500: '#9d5cd2',
    950: '#000000',
  },
}
SCSS
$custom: #9d5cd2;
$custom-light: #bd8de0;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5cd2",
  "rgb": {
    "r": 157,
    "g": 92,
    "b": 210
  },
  "hsl": {
    "h": 273.051,
    "s": 56.731,
    "l": 59.216
  },
  "oklch": {
    "l": 0.60004,
    "c": 0.1799,
    "h": 307.2
  },
  "luminance": 0.19476
}

Semantic roles & 50–950 ramp

primary
#9D5CD2
secondary
#C3DCAE
accent
#E0488C
background
#FBF8FD
surface
#F7F0FB
border
#D0CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #9D5CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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