#5D3DC2#5D3DC2

#5D3DC2 is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.8% C 0.196 H 287.6°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#5D3DC2
RGBrgb(93, 61, 194)
HSLhsl(254, 52%, 50%)
HSVhsv(254, 69%, 76%)
CMYKcmyk(52.1%, 68.6%, 0%, 23.9%)
CIE-LABlab(37.04, 46.99, -64.92)
CIE-LCHlch(37.04, 80.14, 305.90°)
OKLaboklab(47.77% 0.0592 -0.1864)
OKLCHoklch(47.77% 0.196 287.6)
XYZxyz(15.9177, 9.5589, 52.0348)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3DC2 #A2C23D
analogous
#3D60C2 #5D3DC2 #9F3DC2
triadic
#5D3DC2 #C25D3D #3DC25D
tetradic
#5D3DC2 #C23D60 #A2C23D #3DC29F
square
#5D3DC2 #C23D60 #A2C23D #3DC29F
split-complementary
#5D3DC2 #C29F3D #60C23D
monochromatic
#302065 #472E93 #5D3DC2 #846CD1 #AB9ADF

Accessibility & contrast

On white

7.21
#5D3DC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#5D3DC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3DC2
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3DC2#FFFFFF#000000##FFFFFF
##5D3DC21.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d3dc2;
/* rgb */ color: rgb(93, 61, 194);
/* oklch */ color: oklch(47.8% 0.196 287.6);
Tailwind
colors: {
  custom: {
    50: '#9475d5',
    500: '#5d3dc2',
    950: '#000000',
  },
}
SCSS
$custom: #5d3dc2;
$custom-light: #9475d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3dc2",
  "rgb": {
    "r": 93,
    "g": 61,
    "b": 194
  },
  "hsl": {
    "h": 254.436,
    "s": 52.157,
    "l": 50
  },
  "oklch": {
    "l": 0.47766,
    "c": 0.19561,
    "h": 287.6
  },
  "luminance": 0.0956
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5D3DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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