#5D3DC7#5D3DC7

#5D3DC7 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.2% C 0.202 H 286.8°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#5D3DC7
RGBrgb(93, 61, 199)
HSLhsl(254, 55%, 51%)
HSVhsv(254, 69%, 78%)
CMYKcmyk(53.3%, 69.3%, 0%, 22%)
CIE-LABlab(37.46, 48.44, -67.15)
CIE-LCHlch(37.46, 82.80, 305.80°)
OKLaboklab(48.2% 0.0584 -0.193)
OKLCHoklch(48.2% 0.202 286.8)
XYZxyz(16.4887, 9.7873, 55.0421)
Luminance0.0979 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3DC7 #A7C73D
analogous
#3D62C7 #5D3DC7 #A23DC7
triadic
#5D3DC7 #C75D3D #3DC75D
tetradic
#5D3DC7 #C73D62 #A7C73D #3DC7A2
square
#5D3DC7 #C73D62 #A7C73D #3DC7A2
split-complementary
#5D3DC7 #C7A23D #62C73D
monochromatic
#301F6B #462D9A #5D3DC7 #856CD5 #AC9CE2

Accessibility & contrast

On white

7.10
#5D3DC7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#5D3DC7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3DC7
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3DC7#FFFFFF#000000##FFFFFF
##5D3DC71.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCB
Deuteranopia (green-blind)
#0054C4
Tritanopia (blue-blind)
#32617D
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5d3dc7;
/* rgb */ color: rgb(93, 61, 199);
/* oklch */ color: oklch(48.2% 0.202 286.8);
Tailwind
colors: {
  custom: {
    50: '#9575d9',
    500: '#5d3dc7',
    950: '#000000',
  },
}
SCSS
$custom: #5d3dc7;
$custom-light: #9575d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3dc7",
  "rgb": {
    "r": 93,
    "g": 61,
    "b": 199
  },
  "hsl": {
    "h": 253.913,
    "s": 55.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.48195,
    "c": 0.20162,
    "h": 286.8
  },
  "luminance": 0.09788
}

Semantic roles & 50–950 ramp

primary
#5D3DC7
secondary
#C0CE91
accent
#DF49BC
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5D3DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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