#9D5DC2#9D5DC2

#9D5DC2 is a mid, vivid violet. Relative luminance 0.189; OKLCH L 59.2% C 0.160 H 311.7°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#9D5DC2
RGBrgb(157, 93, 194)
HSLhsl(278, 45%, 56%)
HSVhsv(278, 52%, 76%)
CMYKcmyk(19.1%, 52.1%, 0%, 23.9%)
CIE-LABlab(50.56, 44.02, -42.79)
CIE-LCHlch(50.56, 61.39, 315.81°)
OKLaboklab(59.22% 0.1066 -0.1196)
OKLCHoklch(59.22% 0.16 311.7)
XYZxyz(27.5549, 18.8924, 53.2235)
Luminance0.1889 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5DC2 #82C25D
analogous
#6B5DC2 #9D5DC2 #C25DB5
triadic
#9D5DC2 #C29D5D #5DC29D
tetradic
#9D5DC2 #C26B5D #82C25D #5DB5C2
square
#9D5DC2 #C26B5D #82C25D #5DB5C2
split-complementary
#9D5DC2 #B5C25D #5DC26B
monochromatic
#5C2D78 #7F3EA4 #9D5DC2 #B889D3 #D3B6E3

Accessibility & contrast

On white

4.39
#9D5DC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#9D5DC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5DC2
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5DC2#FFFFFF#000000##000000
##9D5DC21.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4375C5
Deuteranopia (green-blind)
#577ABF
Tritanopia (blue-blind)
#996E87
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #9d5dc2;
/* rgb */ color: rgb(157, 93, 194);
/* oklch */ color: oklch(59.2% 0.160 311.7);
Tailwind
colors: {
  custom: {
    50: '#bc8dd5',
    500: '#9d5dc2',
    950: '#000000',
  },
}
SCSS
$custom: #9d5dc2;
$custom-light: #bc8dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5dc2",
  "rgb": {
    "r": 157,
    "g": 93,
    "b": 194
  },
  "hsl": {
    "h": 278.02,
    "s": 45.291,
    "l": 56.275
  },
  "oklch": {
    "l": 0.59219,
    "c": 0.16018,
    "h": 311.7
  },
  "luminance": 0.18892
}

Semantic roles & 50–950 ramp

primary
#9D5DC2
secondary
#B8D2A9
accent
#D55383
background
#FBF8FD
surface
#F7F0FA
border
#D0CBD3
text
#120C14
muted
#817D83

Preview Lab

Preview with #9D5DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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