#5E3ACC#5E3ACC

#5E3ACC is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.3% C 0.211 H 286.9°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#5E3ACC
RGBrgb(94, 58, 204)
HSLhsl(255, 59%, 51%)
HSVhsv(255, 72%, 80%)
CMYKcmyk(53.9%, 71.6%, 0%, 20%)
CIE-LABlab(37.42, 51.61, -70.12)
CIE-LCHlch(37.42, 87.07, 306.35°)
OKLaboklab(48.32% 0.0613 -0.2017)
OKLCHoklch(48.32% 0.211 286.9)
XYZxyz(17.0250, 9.7645, 58.1027)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E3ACC #A8CC3A
analogous
#3A5FCC #5E3ACC #A73ACC
triadic
#5E3ACC #CC5E3A #3ACC5E
tetradic
#5E3ACC #CC3A5F #A8CC3A #3ACCA7
square
#5E3ACC #CC3A5F #A8CC3A #3ACCA7
split-complementary
#5E3ACC #CCA73A #5FCC3A
monochromatic
#311D6F #4629A0 #5E3ACC #866BD9 #AD9BE5

Accessibility & contrast

On white

7.11
#5E3ACC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#5E3ACC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E3ACC
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E3ACC#FFFFFF#000000##FFFFFF
##5E3ACC1.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD0
Deuteranopia (green-blind)
#0054C9
Tritanopia (blue-blind)
#30617F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5e3acc;
/* rgb */ color: rgb(94, 58, 204);
/* oklch */ color: oklch(48.3% 0.211 286.9);
Tailwind
colors: {
  custom: {
    50: '#9673dd',
    500: '#5e3acc',
    950: '#000000',
  },
}
SCSS
$custom: #5e3acc;
$custom-light: #9673dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5e3acc",
  "rgb": {
    "r": 94,
    "g": 58,
    "b": 204
  },
  "hsl": {
    "h": 254.795,
    "s": 58.871,
    "l": 51.373
  },
  "oklch": {
    "l": 0.48321,
    "c": 0.21078,
    "h": 286.9
  },
  "luminance": 0.09765
}

Semantic roles & 50–950 ramp

primary
#5E3ACC
secondary
#C1D191
accent
#E246BC
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5E3ACC

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

Preview Lab → · Contrast checker → · Palette generator →

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