#5E41AB#5E41AB

#5E41AB is a mid, vivid violet. Relative luminance 0.091; OKLCH L 46.6% C 0.162 H 291.4°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#5E41AB
RGBrgb(94, 65, 171)
HSLhsl(256, 45%, 46%)
HSVhsv(256, 62%, 67%)
CMYKcmyk(45%, 62%, 0%, 32.9%)
CIE-LABlab(36.18, 38.25, -52.74)
CIE-LCHlch(36.18, 65.15, 305.95°)
OKLaboklab(46.61% 0.0592 -0.1506)
OKLCHoklch(46.61% 0.162 291.4)
XYZxyz(13.8550, 9.1001, 39.5467)
Luminance0.0910 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E41AB #8EAB41
analogous
#4159AB #5E41AB #9341AB
triadic
#5E41AB #AB5E41 #41AB5E
tetradic
#5E41AB #AB4159 #8EAB41 #41AB93
square
#5E41AB #AB4159 #8EAB41 #41AB93
split-complementary
#5E41AB #AB9341 #59AB41
monochromatic
#2D1F52 #46307F #5E41AB #7F65C4 #A491D5

Accessibility & contrast

On white

7.45
#5E41AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#5E41AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E41AB
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E41AB#FFFFFF#000000##FFFFFF
##5E41AB1.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AE
Deuteranopia (green-blind)
#0053A9
Tritanopia (blue-blind)
#475970
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5e41ab;
/* rgb */ color: rgb(94, 65, 171);
/* oklch */ color: oklch(46.6% 0.162 291.4);
Tailwind
colors: {
  custom: {
    50: '#9177c5',
    500: '#5e41ab',
    950: '#000000',
  },
}
SCSS
$custom: #5e41ab;
$custom-light: #9177c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5e41ab",
  "rgb": {
    "r": 94,
    "g": 65,
    "b": 171
  },
  "hsl": {
    "h": 256.415,
    "s": 44.915,
    "l": 46.275
  },
  "oklch": {
    "l": 0.46605,
    "c": 0.16181,
    "h": 291.4
  },
  "luminance": 0.09101
}

Semantic roles & 50–950 ramp

primary
#5E41AB
secondary
#B1C187
accent
#D553B1
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5E41AB

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

Preview Lab → · Contrast checker → · Palette generator →

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