#9D5CCB#9D5CCB

#9D5CCB is a mid, vivid violet. Relative luminance 0.191; OKLCH L 59.6% C 0.172 H 309.2°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#9D5CCB
RGBrgb(157, 92, 203)
HSLhsl(275, 52%, 58%)
HSVhsv(275, 55%, 80%)
CMYKcmyk(22.7%, 54.7%, 0%, 20.4%)
CIE-LABlab(50.84, 46.58, -47.51)
CIE-LCHlch(50.84, 66.53, 314.43°)
OKLaboklab(59.59% 0.1086 -0.1333)
OKLCHoklch(59.59% 0.172 309.2)
XYZxyz(28.5092, 19.1346, 58.6798)
Luminance0.1913 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5CCB #8ACB5C
analogous
#655CCB #9D5CCB #CB5CC2
triadic
#9D5CCB #CB9D5C #5CCB9D
tetradic
#9D5CCB #CB655C #8ACB5C #5CC2CB
square
#9D5CCB #CB655C #8ACB5C #5CC2CB
split-complementary
#9D5CCB #C2CB5C #5CCB65
monochromatic
#5E2A83 #7F39B1 #9D5CCB #B98ADA #D5B9E9

Accessibility & contrast

On white

4.35
#9D5CCB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#9D5CCB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5CCB
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5CCB#FFFFFF#000000##000000
##9D5CCB1.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A76CF
Deuteranopia (green-blind)
#507AC8
Tritanopia (blue-blind)
#97708B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #9d5ccb;
/* rgb */ color: rgb(157, 92, 203);
/* oklch */ color: oklch(59.6% 0.172 309.2);
Tailwind
colors: {
  custom: {
    50: '#bd8ddb',
    500: '#9d5ccb',
    950: '#000000',
  },
}
SCSS
$custom: #9d5ccb;
$custom-light: #bd8ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5ccb",
  "rgb": {
    "r": 157,
    "g": 92,
    "b": 203
  },
  "hsl": {
    "h": 275.135,
    "s": 51.628,
    "l": 57.843
  },
  "oklch": {
    "l": 0.59586,
    "c": 0.17196,
    "h": 309.2
  },
  "luminance": 0.19134
}

Semantic roles & 50–950 ramp

primary
#9D5CCB
secondary
#BED8AB
accent
#DB4D88
background
#FBF8FD
surface
#F7F0FB
border
#D0CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #9D5CCB

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

Preview Lab → · Contrast checker → · Palette generator →

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