#9D5FCA#9D5FCA

#9D5FCA is a mid, vivid violet. Relative luminance 0.196; OKLCH L 60.0% C 0.166 H 309.0°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#9D5FCA
RGBrgb(157, 95, 202)
HSLhsl(275, 50%, 58%)
HSVhsv(275, 53%, 79%)
CMYKcmyk(22.3%, 53%, 0%, 20.8%)
CIE-LABlab(51.40, 44.74, -46.05)
CIE-LCHlch(51.40, 64.21, 314.18°)
OKLaboklab(59.98% 0.1045 -0.1291)
OKLCHoklch(59.98% 0.166 309)
XYZxyz(28.6554, 19.6172, 58.1426)
Luminance0.1962 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5FCA #8CCA5F
analogous
#675FCA #9D5FCA #CA5FC2
triadic
#9D5FCA #CA9D5F #5FCA9D
tetradic
#9D5FCA #CA675F #8CCA5F #5FC2CA
square
#9D5FCA #CA675F #8CCA5F #5FC2CA
split-complementary
#9D5FCA #C2CA5F #5FCA67
monochromatic
#5E2B83 #7F3BB1 #9D5FCA #B98DD9 #D5BBE8

Accessibility & contrast

On white

4.27
#9D5FCA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#9D5FCA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5FCA
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5FCA#FFFFFF#000000##000000
##9D5FCA1.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4078CE
Deuteranopia (green-blind)
#547BC7
Tritanopia (blue-blind)
#97728B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #9d5fca;
/* rgb */ color: rgb(157, 95, 202);
/* oklch */ color: oklch(60.0% 0.166 309.0);
Tailwind
colors: {
  custom: {
    50: '#bc8eda',
    500: '#9d5fca',
    950: '#000000',
  },
}
SCSS
$custom: #9d5fca;
$custom-light: #bc8eda;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5fca",
  "rgb": {
    "r": 157,
    "g": 95,
    "b": 202
  },
  "hsl": {
    "h": 274.766,
    "s": 50.235,
    "l": 58.235
  },
  "oklch": {
    "l": 0.59979,
    "c": 0.16611,
    "h": 309
  },
  "luminance": 0.19617
}

Semantic roles & 50–950 ramp

primary
#9D5FCA
secondary
#BFD8AD
accent
#DA4E89
background
#FBF8FD
surface
#F7F0FB
border
#D0CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #9D5FCA

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

Preview Lab → · Contrast checker → · Palette generator →

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