#5D3ED8#5D3ED8

#5D3ED8 is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 49.8% C 0.221 H 284.2°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#5D3ED8
RGBrgb(93, 62, 216)
HSLhsl(252, 66%, 55%)
HSVhsv(252, 71%, 85%)
CMYKcmyk(56.9%, 71.3%, 0%, 15.3%)
CIE-LABlab(39.12, 52.84, -74.26)
CIE-LCHlch(39.12, 91.14, 305.44°)
OKLaboklab(49.83% 0.0543 -0.2138)
OKLCHoklch(49.83% 0.221 284.2)
XYZxyz(18.6277, 10.7291, 66.0418)
Luminance0.1073 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3ED8 #B9D83E
analogous
#3E6CD8 #5D3ED8 #AA3ED8
triadic
#5D3ED8 #D85D3E #3ED85D
tetradic
#5D3ED8 #D83E6C #B9D83E #3ED8AA
square
#5D3ED8 #D83E6C #B9D83E #3ED8AA
split-complementary
#5D3ED8 #D8AA3E #6CD83E
monochromatic
#2F1A81 #4124B4 #5D3ED8 #8871E2 #B2A4ED

Accessibility & contrast

On white

6.68
#5D3ED8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#5D3ED8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D3ED8
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3ED8#FFFFFF#000000##FFFFFF
##5D3ED81.006.683.156.68
#FFFFFF6.681.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061DD
Deuteranopia (green-blind)
#0057D5
Tritanopia (blue-blind)
#1B6887
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5d3ed8;
/* rgb */ color: rgb(93, 62, 216);
/* oklch */ color: oklch(49.8% 0.221 284.2);
Tailwind
colors: {
  custom: {
    50: '#9776e5',
    500: '#5d3ed8',
    950: '#000000',
  },
}
SCSS
$custom: #5d3ed8;
$custom-light: #9776e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3ed8",
  "rgb": {
    "r": 93,
    "g": 62,
    "b": 216
  },
  "hsl": {
    "h": 252.078,
    "s": 66.379,
    "l": 54.51
  },
  "oklch": {
    "l": 0.49831,
    "c": 0.22062,
    "h": 284.2
  },
  "luminance": 0.1073
}

Semantic roles & 50–950 ramp

primary
#5D3ED8
secondary
#CCD998
accent
#E93EC7
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5D3ED8

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

Preview Lab → · Contrast checker → · Palette generator →

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