#5E41AA#5E41AA

#5E41AA is a mid, vivid violet. Relative luminance 0.091; OKLCH L 46.5% C 0.161 H 291.7°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#5E41AA
RGBrgb(94, 65, 170)
HSLhsl(257, 45%, 46%)
HSVhsv(257, 62%, 67%)
CMYKcmyk(44.7%, 61.8%, 0%, 33.3%)
CIE-LABlab(36.10, 37.96, -52.26)
CIE-LCHlch(36.10, 64.59, 305.99°)
OKLaboklab(46.53% 0.0592 -0.1492)
OKLCHoklch(46.53% 0.161 291.7)
XYZxyz(13.7601, 9.0621, 39.0466)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E41AA #8DAA41
analogous
#4158AA #5E41AA #9241AA
triadic
#5E41AA #AA5E41 #41AA5E
tetradic
#5E41AA #AA4158 #8DAA41 #41AA92
square
#5E41AA #AA4158 #8DAA41 #41AA92
split-complementary
#5E41AA #AA9241 #58AA41
monochromatic
#2D1F51 #46307E #5E41AA #7F64C4 #A391D5

Accessibility & contrast

On white

7.47
#5E41AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#5E41AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E41AA
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E41AA#FFFFFF#000000##FFFFFF
##5E41AA1.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AD
Deuteranopia (green-blind)
#0053A8
Tritanopia (blue-blind)
#48596F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5e41aa;
/* rgb */ color: rgb(94, 65, 170);
/* oklch */ color: oklch(46.5% 0.161 291.7);
Tailwind
colors: {
  custom: {
    50: '#9177c4',
    500: '#5e41aa',
    950: '#000000',
  },
}
SCSS
$custom: #5e41aa;
$custom-light: #9177c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e41aa",
  "rgb": {
    "r": 94,
    "g": 65,
    "b": 170
  },
  "hsl": {
    "h": 256.571,
    "s": 44.681,
    "l": 46.078
  },
  "oklch": {
    "l": 0.46529,
    "c": 0.16052,
    "h": 291.7
  },
  "luminance": 0.09063
}

Semantic roles & 50–950 ramp

primary
#5E41AA
secondary
#B0C087
accent
#D453B1
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5E41AA

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

Preview Lab → · Contrast checker → · Palette generator →

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