#5D3DCA#5D3DCA

#5D3DCA is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.5% C 0.205 H 286.4°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#5D3DCA
RGBrgb(93, 61, 202)
HSLhsl(254, 57%, 52%)
HSVhsv(254, 70%, 79%)
CMYKcmyk(54%, 69.8%, 0%, 20.8%)
CIE-LABlab(37.71, 49.31, -68.48)
CIE-LCHlch(37.71, 84.39, 305.75°)
OKLaboklab(48.46% 0.0578 -0.1969)
OKLCHoklch(48.46% 0.205 286.4)
XYZxyz(16.8404, 9.9280, 56.8946)
Luminance0.0993 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3DCA #AACA3D
analogous
#3D64CA #5D3DCA #A43DCA
triadic
#5D3DCA #CA5D3D #3DCA5D
tetradic
#5D3DCA #CA3D64 #AACA3D #3DCAA4
square
#5D3DCA #CA3D64 #AACA3D #3DCAA4
split-complementary
#5D3DCA #CAA43D #64CA3D
monochromatic
#301E6E #452B9F #5D3DCA #856DD7 #AD9DE4

Accessibility & contrast

On white

7.03
#5D3DCA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D3DCA
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3DCA#FFFFFF#000000##FFFFFF
##5D3DCA1.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCE
Deuteranopia (green-blind)
#0055C7
Tritanopia (blue-blind)
#2F627F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5d3dca;
/* rgb */ color: rgb(93, 61, 202);
/* oklch */ color: oklch(48.5% 0.205 286.4);
Tailwind
colors: {
  custom: {
    50: '#9575db',
    500: '#5d3dca',
    950: '#000000',
  },
}
SCSS
$custom: #5d3dca;
$custom-light: #9575db;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3dca",
  "rgb": {
    "r": 93,
    "g": 61,
    "b": 202
  },
  "hsl": {
    "h": 253.617,
    "s": 57.085,
    "l": 51.569
  },
  "oklch": {
    "l": 0.48456,
    "c": 0.20519,
    "h": 286.4
  },
  "luminance": 0.09929
}

Semantic roles & 50–950 ramp

primary
#5D3DCA
secondary
#C2D092
accent
#E047BE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5D3DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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