#5E3ED8#5E3ED8

#5E3ED8 is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 49.9% C 0.221 H 284.6°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#5E3ED8
RGBrgb(94, 62, 216)
HSLhsl(252, 66%, 55%)
HSVhsv(252, 71%, 85%)
CMYKcmyk(56.5%, 71.3%, 0%, 15.3%)
CIE-LABlab(39.21, 52.98, -74.11)
CIE-LCHlch(39.21, 91.10, 305.56°)
OKLaboklab(49.92% 0.0557 -0.2133)
OKLCHoklch(49.92% 0.221 284.6)
XYZxyz(18.7296, 10.7817, 66.0466)
Luminance0.1078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E3ED8 #B8D83E
analogous
#3E6BD8 #5E3ED8 #AB3ED8
triadic
#5E3ED8 #D85E3E #3ED85E
tetradic
#5E3ED8 #D83E6B #B8D83E #3ED8AB
square
#5E3ED8 #D83E6B #B8D83E #3ED8AB
split-complementary
#5E3ED8 #D8AB3E #6BD83E
monochromatic
#301A81 #4224B4 #5E3ED8 #8871E2 #B3A4ED

Accessibility & contrast

On white

6.65
#5E3ED8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#5E3ED8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E3ED8
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E3ED8#FFFFFF#000000##FFFFFF
##5E3ED81.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e3ed8;
/* rgb */ color: rgb(94, 62, 216);
/* oklch */ color: oklch(49.9% 0.221 284.6);
Tailwind
colors: {
  custom: {
    50: '#9876e5',
    500: '#5e3ed8',
    950: '#000000',
  },
}
SCSS
$custom: #5e3ed8;
$custom-light: #9876e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5e3ed8",
  "rgb": {
    "r": 94,
    "g": 62,
    "b": 216
  },
  "hsl": {
    "h": 252.468,
    "s": 66.379,
    "l": 54.51
  },
  "oklch": {
    "l": 0.49917,
    "c": 0.2205,
    "h": 284.6
  },
  "luminance": 0.10783
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5E3ED8

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

Preview Lab → · Contrast checker → · Palette generator →

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