#5D3FD1#5D3FD1

#5D3FD1 is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.3% C 0.211 H 285.0°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#5D3FD1
RGBrgb(93, 63, 209)
HSLhsl(252, 61%, 53%)
HSVhsv(252, 70%, 82%)
CMYKcmyk(55.5%, 69.9%, 0%, 18%)
CIE-LABlab(38.70, 50.28, -70.92)
CIE-LCHlch(38.70, 86.94, 305.33°)
OKLaboklab(49.34% 0.0549 -0.204)
OKLCHoklch(49.34% 0.211 285)
XYZxyz(17.7968, 10.4846, 61.3952)
Luminance0.1049 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3FD1 #B3D13F
analogous
#3F6AD1 #5D3FD1 #A63FD1
triadic
#5D3FD1 #D15D3F #3FD15D
tetradic
#5D3FD1 #D13F6A #B3D13F #3FD1A6
square
#5D3FD1 #D13F6A #B3D13F #3FD1A6
split-complementary
#5D3FD1 #D1A63F #6AD13F
monochromatic
#301D79 #4329AA #5D3FD1 #8770DD #B0A2E9

Accessibility & contrast

On white

6.78
#5D3FD1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#5D3FD1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D3FD1
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3FD1#FFFFFF#000000##FFFFFF
##5D3FD11.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD5
Deuteranopia (green-blind)
#0057CE
Tritanopia (blue-blind)
#266683
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5d3fd1;
/* rgb */ color: rgb(93, 63, 209);
/* oklch */ color: oklch(49.3% 0.211 285.0);
Tailwind
colors: {
  custom: {
    50: '#9677e0',
    500: '#5d3fd1',
    950: '#000000',
  },
}
SCSS
$custom: #5d3fd1;
$custom-light: #9677e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3fd1",
  "rgb": {
    "r": 93,
    "g": 63,
    "b": 209
  },
  "hsl": {
    "h": 252.329,
    "s": 61.345,
    "l": 53.333
  },
  "oklch": {
    "l": 0.49344,
    "c": 0.2113,
    "h": 285
  },
  "luminance": 0.10486
}

Semantic roles & 50–950 ramp

primary
#5D3FD1
secondary
#C8D597
accent
#E443C3
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #5D3FD1

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

Preview Lab → · Contrast checker → · Palette generator →

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