#9D5CDC#9D5CDC

#9D5CDC is a mid, vivid violet. Relative luminance 0.200; OKLCH L 60.6% C 0.191 H 304.8°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#9D5CDC
RGBrgb(157, 92, 220)
HSLhsl(270, 65%, 61%)
HSVhsv(270, 58%, 86%)
CMYKcmyk(28.6%, 58.2%, 0%, 13.7%)
CIE-LABlab(51.83, 50.51, -55.62)
CIE-LCHlch(51.83, 75.14, 312.24°)
OKLaboklab(60.62% 0.109 -0.1571)
OKLCHoklch(60.62% 0.191 304.8)
XYZxyz(30.6472, 19.9899, 69.9401)
Luminance0.1999 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5CDC #9BDC5C
analogous
#5D5CDC #9D5CDC #DC5CDB
triadic
#9D5CDC #DC9D5C #5CDC9D
tetradic
#9D5CDC #DC5D5C #9BDC5C #5CDBDC
square
#9D5CDC #DC5D5C #9BDC5C #5CDBDC
split-complementary
#9D5CDC #DBDC5C #5CDC5D
monochromatic
#60229C #7F2CCE #9D5CDC #BB8EE7 #DAC1F2

Accessibility & contrast

On white

4.20
#9D5CDC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#9D5CDC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5CDC
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5CDC#FFFFFF#000000##000000
##9D5CDC1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#247AE0
Deuteranopia (green-blind)
#417CD9
Tritanopia (blue-blind)
#927593
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9d5cdc;
/* rgb */ color: rgb(157, 92, 220);
/* oklch */ color: oklch(60.6% 0.191 304.8);
Tailwind
colors: {
  custom: {
    50: '#be8de7',
    500: '#9d5cdc',
    950: '#000000',
  },
}
SCSS
$custom: #9d5cdc;
$custom-light: #be8de7;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5cdc",
  "rgb": {
    "r": 157,
    "g": 92,
    "b": 220
  },
  "hsl": {
    "h": 270.469,
    "s": 64.646,
    "l": 61.176
  },
  "oklch": {
    "l": 0.60622,
    "c": 0.19124,
    "h": 304.8
  },
  "luminance": 0.1999
}

Semantic roles & 50–950 ramp

primary
#9D5CDC
secondary
#CAE2B2
accent
#CC1971
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9D5CDC

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

Preview Lab → · Contrast checker → · Palette generator →

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