#5E3AD5#5E3AD5

#5E3AD5 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.1% C 0.221 H 285.6°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#5E3AD5
RGBrgb(94, 58, 213)
HSLhsl(254, 65%, 53%)
HSVhsv(254, 73%, 84%)
CMYKcmyk(55.9%, 72.8%, 0%, 16.5%)
CIE-LABlab(38.21, 54.17, -74.02)
CIE-LCHlch(38.21, 91.72, 306.20°)
OKLaboklab(49.13% 0.0594 -0.2131)
OKLCHoklch(49.13% 0.221 285.6)
XYZxyz(18.1358, 10.2088, 63.9528)
Luminance0.1021 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E3AD5 #B1D53A
analogous
#3A64D5 #5E3AD5 #AB3AD5
triadic
#5E3AD5 #D55E3A #3AD55E
tetradic
#5E3AD5 #D53A64 #B1D53A #3AD5AB
square
#5E3AD5 #D53A64 #B1D53A #3AD5AB
split-complementary
#5E3AD5 #D5AB3A #64D53A
monochromatic
#301A7A #4425AD #5E3AD5 #876CE0 #B09FEB

Accessibility & contrast

On white

6.90
#5E3AD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#5E3AD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E3AD5
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E3AD5#FFFFFF#000000##FFFFFF
##5E3AD51.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EDA
Deuteranopia (green-blind)
#0055D2
Tritanopia (blue-blind)
#256584
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5e3ad5;
/* rgb */ color: rgb(94, 58, 213);
/* oklch */ color: oklch(49.1% 0.221 285.6);
Tailwind
colors: {
  custom: {
    50: '#9874e3',
    500: '#5e3ad5',
    950: '#000000',
  },
}
SCSS
$custom: #5e3ad5;
$custom-light: #9874e3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e3ad5",
  "rgb": {
    "r": 94,
    "g": 58,
    "b": 213
  },
  "hsl": {
    "h": 253.935,
    "s": 64.854,
    "l": 53.137
  },
  "oklch": {
    "l": 0.4913,
    "c": 0.22118,
    "h": 285.6
  },
  "luminance": 0.1021
}

Semantic roles & 50–950 ramp

primary
#5E3AD5
secondary
#C7D794
accent
#E840C1
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5E3AD5

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

Preview Lab → · Contrast checker → · Palette generator →

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