#5E3ACB#5E3ACB

#5E3ACB is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.2% C 0.210 H 287.1°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#5E3ACB
RGBrgb(94, 58, 203)
HSLhsl(255, 58%, 51%)
HSVhsv(255, 71%, 80%)
CMYKcmyk(53.7%, 71.4%, 0%, 20.4%)
CIE-LABlab(37.33, 51.32, -69.69)
CIE-LCHlch(37.33, 86.55, 306.37°)
OKLaboklab(48.23% 0.0615 -0.2004)
OKLCHoklch(48.23% 0.21 287.1)
XYZxyz(16.9054, 9.7167, 57.4731)
Luminance0.0972 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E3ACB #A7CB3A
analogous
#3A5ECB #5E3ACB #A73ACB
triadic
#5E3ACB #CB5E3A #3ACB5E
tetradic
#5E3ACB #CB3A5E #A7CB3A #3ACBA7
square
#5E3ACB #CB3A5E #A7CB3A #3ACBA7
split-complementary
#5E3ACB #CBA73A #5ECB3A
monochromatic
#311D6E #472A9E #5E3ACB #866AD8 #AD9BE5

Accessibility & contrast

On white

7.13
#5E3ACB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#5E3ACB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E3ACB
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E3ACB#FFFFFF#000000##FFFFFF
##5E3ACB1.007.132.947.13
#FFFFFF7.131.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCF
Deuteranopia (green-blind)
#0054C8
Tritanopia (blue-blind)
#31617F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5e3acb;
/* rgb */ color: rgb(94, 58, 203);
/* oklch */ color: oklch(48.2% 0.210 287.1);
Tailwind
colors: {
  custom: {
    50: '#9673dc',
    500: '#5e3acb',
    950: '#000000',
  },
}
SCSS
$custom: #5e3acb;
$custom-light: #9673dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5e3acb",
  "rgb": {
    "r": 94,
    "g": 58,
    "b": 203
  },
  "hsl": {
    "h": 254.897,
    "s": 58.233,
    "l": 51.176
  },
  "oklch": {
    "l": 0.48232,
    "c": 0.20961,
    "h": 287.1
  },
  "luminance": 0.09718
}

Semantic roles & 50–950 ramp

primary
#5E3ACB
secondary
#C1D090
accent
#E146BB
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5E3ACB

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

Preview Lab → · Contrast checker → · Palette generator →

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