#9D5CED#9D5CED

#9D5CED is a mid, highly saturated violet. Relative luminance 0.209; OKLCH L 61.7% C 0.210 H 301.1°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#9D5CED
RGBrgb(157, 92, 237)
HSLhsl(267, 80%, 65%)
HSVhsv(267, 61%, 93%)
CMYKcmyk(33.8%, 61.2%, 0%, 7.1%)
CIE-LABlab(52.88, 54.58, -63.50)
CIE-LCHlch(52.88, 83.73, 310.68°)
OKLaboklab(61.73% 0.1086 -0.1802)
OKLCHoklch(61.73% 0.21 301.1)
XYZxyz(33.0142, 20.9366, 82.4062)
Luminance0.2094 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5CED #ACED5C
analogous
#5C64ED #9D5CED #E65CED
triadic
#9D5CED #ED9D5C #5CED9D
tetradic
#9D5CED #ED5C64 #ACED5C #5CEDE6
square
#9D5CED #ED5C64 #ACED5C #5CEDE6
split-complementary
#9D5CED #EDE65C #64ED5C
monochromatic
#5F15BA #7C25E7 #9D5CED #BE93F3 #DFCAF9

Accessibility & contrast

On white

4.05
#9D5CED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#9D5CED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5CED
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5CED#FFFFFF#000000##000000
##9D5CED1.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF2
Deuteranopia (green-blind)
#2A7DEA
Tritanopia (blue-blind)
#8C7B9C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9d5ced;
/* rgb */ color: rgb(157, 92, 237);
/* oklch */ color: oklch(61.7% 0.210 301.1);
Tailwind
colors: {
  custom: {
    50: '#bf8df4',
    500: '#9d5ced',
    950: '#000000',
  },
}
SCSS
$custom: #9d5ced;
$custom-light: #bf8df4;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5ced",
  "rgb": {
    "r": 157,
    "g": 92,
    "b": 237
  },
  "hsl": {
    "h": 266.897,
    "s": 80.11,
    "l": 64.51
  },
  "oklch": {
    "l": 0.61727,
    "c": 0.21043,
    "h": 301.1
  },
  "luminance": 0.20937
}

Semantic roles & 50–950 ramp

primary
#9D5CED
secondary
#D5EBB9
accent
#DC097E
background
#FCF8FF
surface
#F8F0FE
border
#D1CBD6
text
#130C17
muted
#827D85

Preview Lab

Preview with #9D5CED

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

Preview Lab → · Contrast checker → · Palette generator →

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