#5D3CC2#5D3CC2

#5D3CC2 is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.6% C 0.197 H 287.8°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#5D3CC2
RGBrgb(93, 60, 194)
HSLhsl(255, 53%, 50%)
HSVhsv(255, 69%, 76%)
CMYKcmyk(52.1%, 69.1%, 0%, 23.9%)
CIE-LABlab(36.84, 47.53, -65.24)
CIE-LCHlch(36.84, 80.72, 306.07°)
OKLaboklab(47.63% 0.0601 -0.1874)
OKLCHoklch(47.63% 0.197 287.8)
XYZxyz(15.8648, 9.4531, 52.0172)
Luminance0.0945 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3CC2 #A1C23C
analogous
#3C5EC2 #5D3CC2 #A03CC2
triadic
#5D3CC2 #C25D3C #3CC25D
tetradic
#5D3CC2 #C23C5E #A1C23C #3CC2A0
square
#5D3CC2 #C23C5E #A1C23C #3CC2A0
split-complementary
#5D3CC2 #C2A03C #5EC23C
monochromatic
#301F65 #472E93 #5D3CC2 #846AD1 #AA99DF

Accessibility & contrast

On white

7.26
#5D3CC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5D3CC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3CC2
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3CC2#FFFFFF#000000##FFFFFF
##5D3CC21.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC6
Deuteranopia (green-blind)
#0053BF
Tritanopia (blue-blind)
#365E7A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5d3cc2;
/* rgb */ color: rgb(93, 60, 194);
/* oklch */ color: oklch(47.6% 0.197 287.8);
Tailwind
colors: {
  custom: {
    50: '#9474d5',
    500: '#5d3cc2',
    950: '#000000',
  },
}
SCSS
$custom: #5d3cc2;
$custom-light: #9474d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3cc2",
  "rgb": {
    "r": 93,
    "g": 60,
    "b": 194
  },
  "hsl": {
    "h": 254.776,
    "s": 52.756,
    "l": 49.804
  },
  "oklch": {
    "l": 0.47625,
    "c": 0.19678,
    "h": 287.8
  },
  "luminance": 0.09454
}

Semantic roles & 50–950 ramp

primary
#5D3CC2
secondary
#BCCB8F
accent
#DC4CB9
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5D3CC2

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

Preview Lab → · Contrast checker → · Palette generator →

#5D3CC2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva