#5E41AC#5E41AC

#5E41AC is a mid, vivid violet. Relative luminance 0.091; OKLCH L 46.7% C 0.163 H 291.2°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#5E41AC
RGBrgb(94, 65, 172)
HSLhsl(256, 45%, 46%)
HSVhsv(256, 62%, 67%)
CMYKcmyk(45.3%, 62.2%, 0%, 32.5%)
CIE-LABlab(36.25, 38.53, -53.21)
CIE-LCHlch(36.25, 65.70, 305.91°)
OKLaboklab(46.68% 0.0591 -0.152)
OKLCHoklch(46.68% 0.163 291.2)
XYZxyz(13.9507, 9.1384, 40.0506)
Luminance0.0914 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E41AC #8FAC41
analogous
#415AAC #5E41AC #9441AC
triadic
#5E41AC #AC5E41 #41AC5E
tetradic
#5E41AC #AC415A #8FAC41 #41AC94
square
#5E41AC #AC415A #8FAC41 #41AC94
split-complementary
#5E41AC #AC9441 #5AAC41
monochromatic
#2D1F53 #463080 #5E41AC #7F65C5 #A492D6

Accessibility & contrast

On white

7.43
#5E41AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#5E41AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E41AC
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E41AC#FFFFFF#000000##FFFFFF
##5E41AC1.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AF
Deuteranopia (green-blind)
#0053AA
Tritanopia (blue-blind)
#475A70
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5e41ac;
/* rgb */ color: rgb(94, 65, 172);
/* oklch */ color: oklch(46.7% 0.163 291.2);
Tailwind
colors: {
  custom: {
    50: '#9277c5',
    500: '#5e41ac',
    950: '#000000',
  },
}
SCSS
$custom: #5e41ac;
$custom-light: #9277c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5e41ac",
  "rgb": {
    "r": 94,
    "g": 65,
    "b": 172
  },
  "hsl": {
    "h": 256.262,
    "s": 45.148,
    "l": 46.471
  },
  "oklch": {
    "l": 0.46681,
    "c": 0.16309,
    "h": 291.2
  },
  "luminance": 0.09139
}

Semantic roles & 50–950 ramp

primary
#5E41AC
secondary
#B2C188
accent
#D553B2
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5E41AC

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

Preview Lab → · Contrast checker → · Palette generator →

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