#9D5CC2#9D5CC2

#9D5CC2 is a mid, vivid violet. Relative luminance 0.187; OKLCH L 59.1% C 0.162 H 311.8°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#9D5CC2
RGBrgb(157, 92, 194)
HSLhsl(278, 46%, 56%)
HSVhsv(278, 53%, 76%)
CMYKcmyk(19.1%, 52.6%, 0%, 23.9%)
CIE-LABlab(50.36, 44.56, -43.11)
CIE-LCHlch(50.36, 62.00, 315.94°)
OKLaboklab(59.07% 0.1079 -0.1205)
OKLCHoklch(59.07% 0.162 311.8)
XYZxyz(27.4677, 18.7180, 53.1945)
Luminance0.1872 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5CC2 #81C25C
analogous
#6A5CC2 #9D5CC2 #C25CB4
triadic
#9D5CC2 #C29D5C #5CC29D
tetradic
#9D5CC2 #C26A5C #81C25C #5CB4C2
square
#9D5CC2 #C26A5C #81C25C #5CB4C2
split-complementary
#9D5CC2 #B4C25C #5CC26A
monochromatic
#5C2D77 #7E3DA4 #9D5CC2 #B889D3 #D3B5E3

Accessibility & contrast

On white

4.43
#9D5CC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#9D5CC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5CC2
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5CC2#FFFFFF#000000##000000
##9D5CC21.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4175C5
Deuteranopia (green-blind)
#5679BF
Tritanopia (blue-blind)
#996D86
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #9d5cc2;
/* rgb */ color: rgb(157, 92, 194);
/* oklch */ color: oklch(59.1% 0.162 311.8);
Tailwind
colors: {
  custom: {
    50: '#bc8cd5',
    500: '#9d5cc2',
    950: '#000000',
  },
}
SCSS
$custom: #9d5cc2;
$custom-light: #bc8cd5;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5cc2",
  "rgb": {
    "r": 157,
    "g": 92,
    "b": 194
  },
  "hsl": {
    "h": 278.235,
    "s": 45.536,
    "l": 56.078
  },
  "oklch": {
    "l": 0.59067,
    "c": 0.1618,
    "h": 311.8
  },
  "luminance": 0.18717
}

Semantic roles & 50–950 ramp

primary
#9D5CC2
secondary
#B7D2A8
accent
#D55382
background
#FBF8FD
surface
#F7F0FA
border
#D0CBD3
text
#120C14
muted
#817D83

Preview Lab

Preview with #9D5CC2

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

Preview Lab → · Contrast checker → · Palette generator →

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