#9D5CDA#9D5CDA

#9D5CDA is a mid, vivid violet. Relative luminance 0.199; OKLCH L 60.5% C 0.189 H 305.2°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#9D5CDA
RGBrgb(157, 92, 218)
HSLhsl(271, 63%, 61%)
HSVhsv(271, 58%, 85%)
CMYKcmyk(28%, 57.8%, 0%, 14.5%)
CIE-LABlab(51.71, 50.04, -54.68)
CIE-LCHlch(51.71, 74.12, 312.46°)
OKLaboklab(60.5% 0.109 -0.1543)
OKLCHoklch(60.5% 0.189 305.2)
XYZxyz(30.3839, 19.8845, 68.5535)
Luminance0.1988 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5CDA #99DA5C
analogous
#5E5CDA #9D5CDA #DA5CD8
triadic
#9D5CDA #DA9D5C #5CDA9D
tetradic
#9D5CDA #DA5E5C #99DA5C #5CD8DA
square
#9D5CDA #DA5E5C #99DA5C #5CD8DA
split-complementary
#9D5CDA #D8DA5C #5CDA5E
monochromatic
#602399 #7F2ECB #9D5CDA #BB8EE5 #D9C0F1

Accessibility & contrast

On white

4.22
#9D5CDA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#9D5CDA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5CDA
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5CDA#FFFFFF#000000##000000
##9D5CDA1.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2779DE
Deuteranopia (green-blind)
#437BD7
Tritanopia (blue-blind)
#937592
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #9d5cda;
/* rgb */ color: rgb(157, 92, 218);
/* oklch */ color: oklch(60.5% 0.189 305.2);
Tailwind
colors: {
  custom: {
    50: '#bd8de6',
    500: '#9d5cda',
    950: '#000000',
  },
}
SCSS
$custom: #9d5cda;
$custom-light: #bd8de6;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5cda",
  "rgb": {
    "r": 157,
    "g": 92,
    "b": 218
  },
  "hsl": {
    "h": 270.952,
    "s": 63,
    "l": 60.784
  },
  "oklch": {
    "l": 0.60496,
    "c": 0.18897,
    "h": 305.2
  },
  "luminance": 0.19884
}

Semantic roles & 50–950 ramp

primary
#9D5CDA
secondary
#C8E1B1
accent
#CB1B70
background
#FCF8FE
surface
#F8F0FC
border
#D1CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9D5CDA

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

Preview Lab → · Contrast checker → · Palette generator →

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