#5D3DC5#5D3DC5

#5D3DC5 is a mid, vivid violet. Relative luminance 0.097; OKLCH L 48.0% C 0.199 H 287.1°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#5D3DC5
RGBrgb(93, 61, 197)
HSLhsl(254, 54%, 51%)
HSVhsv(254, 69%, 77%)
CMYKcmyk(52.8%, 69%, 0%, 22.7%)
CIE-LABlab(37.29, 47.86, -66.26)
CIE-LCHlch(37.29, 81.74, 305.84°)
OKLaboklab(48.02% 0.0587 -0.1904)
OKLCHoklch(48.02% 0.199 287.1)
XYZxyz(16.2580, 9.6950, 53.8272)
Luminance0.0970 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3DC5 #A5C53D
analogous
#3D61C5 #5D3DC5 #A13DC5
triadic
#5D3DC5 #C55D3D #3DC55D
tetradic
#5D3DC5 #C53D61 #A5C53D #3DC5A1
square
#5D3DC5 #C53D61 #A5C53D #3DC5A1
split-complementary
#5D3DC5 #C5A13D #61C53D
monochromatic
#301F68 #462D98 #5D3DC5 #846CD3 #AC9BE1

Accessibility & contrast

On white

7.14
#5D3DC5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#5D3DC5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3DC5
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3DC5#FFFFFF#000000##FFFFFF
##5D3DC51.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC9
Deuteranopia (green-blind)
#0054C2
Tritanopia (blue-blind)
#34607C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5d3dc5;
/* rgb */ color: rgb(93, 61, 197);
/* oklch */ color: oklch(48.0% 0.199 287.1);
Tailwind
colors: {
  custom: {
    50: '#9575d8',
    500: '#5d3dc5',
    950: '#000000',
  },
}
SCSS
$custom: #5d3dc5;
$custom-light: #9575d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3dc5",
  "rgb": {
    "r": 93,
    "g": 61,
    "b": 197
  },
  "hsl": {
    "h": 254.118,
    "s": 53.968,
    "l": 50.588
  },
  "oklch": {
    "l": 0.48023,
    "c": 0.19921,
    "h": 287.1
  },
  "luminance": 0.09696
}

Semantic roles & 50–950 ramp

primary
#5D3DC5
secondary
#BFCD91
accent
#DD4ABB
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5D3DC5

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

Preview Lab → · Contrast checker → · Palette generator →

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