#5D3CCD#5D3CCD

#5D3CCD is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.6% C 0.210 H 286.1°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#5D3CCD
RGBrgb(93, 60, 205)
HSLhsl(254, 59%, 52%)
HSVhsv(254, 71%, 80%)
CMYKcmyk(54.6%, 70.7%, 0%, 19.6%)
CIE-LABlab(37.78, 50.70, -70.11)
CIE-LCHlch(37.78, 86.52, 305.87°)
OKLaboklab(48.58% 0.0581 -0.2017)
OKLCHoklch(48.58% 0.21 286.1)
XYZxyz(17.1462, 9.9657, 58.7659)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3CCD #ACCD3C
analogous
#3C64CD #5D3CCD #A63CCD
triadic
#5D3CCD #CD5D3C #3CCD5D
tetradic
#5D3CCD #CD3C64 #ACCD3C #3CCDA6
square
#5D3CCD #CD3C64 #ACCD3C #3CCDA6
split-complementary
#5D3CCD #CDA63C #64CD3C
monochromatic
#301D71 #452AA2 #5D3CCD #856DD9 #AE9DE6

Accessibility & contrast

On white

7.02
#5D3CCD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#5D3CCD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3CCD
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3CCD#FFFFFF#000000##FFFFFF
##5D3CCD1.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD1
Deuteranopia (green-blind)
#0055CA
Tritanopia (blue-blind)
#2C6380
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5d3ccd;
/* rgb */ color: rgb(93, 60, 205);
/* oklch */ color: oklch(48.6% 0.210 286.1);
Tailwind
colors: {
  custom: {
    50: '#9675dd',
    500: '#5d3ccd',
    950: '#000000',
  },
}
SCSS
$custom: #5d3ccd;
$custom-light: #9675dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3ccd",
  "rgb": {
    "r": 93,
    "g": 60,
    "b": 205
  },
  "hsl": {
    "h": 253.655,
    "s": 59.184,
    "l": 51.961
  },
  "oklch": {
    "l": 0.48584,
    "c": 0.20986,
    "h": 286.1
  },
  "luminance": 0.09967
}

Semantic roles & 50–950 ramp

primary
#5D3CCD
secondary
#C4D293
accent
#E245BF
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5D3CCD

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

Preview Lab → · Contrast checker → · Palette generator →

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