#5D3CCE#5D3CCE

#5D3CCE is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.7% C 0.211 H 285.9°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#5D3CCE
RGBrgb(93, 60, 206)
HSLhsl(254, 60%, 52%)
HSVhsv(254, 71%, 81%)
CMYKcmyk(54.9%, 70.9%, 0%, 19.2%)
CIE-LABlab(37.87, 50.99, -70.55)
CIE-LCHlch(37.87, 87.05, 305.86°)
OKLaboklab(48.67% 0.0579 -0.2029)
OKLCHoklch(48.67% 0.211 285.9)
XYZxyz(17.2673, 10.0141, 59.4036)
Luminance0.1002 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3CCE #ADCE3C
analogous
#3C64CE #5D3CCE #A63CCE
triadic
#5D3CCE #CE5D3C #3CCE5D
tetradic
#5D3CCE #CE3C64 #ADCE3C #3CCEA6
square
#5D3CCE #CE3C64 #ADCE3C #3CCEA6
split-complementary
#5D3CCE #CEA63C #64CE3C
monochromatic
#301D73 #4529A4 #5D3CCE #866DDA #AE9EE7

Accessibility & contrast

On white

6.99
#5D3CCE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#5D3CCE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D3CCE
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3CCE#FFFFFF#000000##FFFFFF
##5D3CCE1.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD2
Deuteranopia (green-blind)
#0055CB
Tritanopia (blue-blind)
#2A6381
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5d3cce;
/* rgb */ color: rgb(93, 60, 206);
/* oklch */ color: oklch(48.7% 0.211 285.9);
Tailwind
colors: {
  custom: {
    50: '#9675de',
    500: '#5d3cce',
    950: '#000000',
  },
}
SCSS
$custom: #5d3cce;
$custom-light: #9675de;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3cce",
  "rgb": {
    "r": 93,
    "g": 60,
    "b": 206
  },
  "hsl": {
    "h": 253.562,
    "s": 59.836,
    "l": 52.157
  },
  "oklch": {
    "l": 0.48672,
    "c": 0.21104,
    "h": 285.9
  },
  "luminance": 0.10015
}

Semantic roles & 50–950 ramp

primary
#5D3CCE
secondary
#C4D393
accent
#E345BF
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5D3CCE

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

Preview Lab → · Contrast checker → · Palette generator →

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