#5E40AE#5E40AE

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

Color values

HEX#5E40AE
RGBrgb(94, 64, 174)
HSLhsl(256, 46%, 47%)
HSVhsv(256, 63%, 68%)
CMYKcmyk(46%, 63.2%, 0%, 31.8%)
CIE-LABlab(36.18, 39.69, -54.52)
CIE-LCHlch(36.18, 67.44, 306.06°)
OKLaboklab(46.68% 0.0601 -0.1558)
OKLCHoklch(46.68% 0.167 291.1)
XYZxyz(14.0873, 9.1020, 41.0508)
Luminance0.0910 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E40AE #90AE40
analogous
#4059AE #5E40AE #9540AE
triadic
#5E40AE #AE5E40 #40AE5E
tetradic
#5E40AE #AE4059 #90AE40 #40AE95
square
#5E40AE #AE4059 #90AE40 #40AE95
split-complementary
#5E40AE #AE9540 #59AE40
monochromatic
#2E1F55 #463081 #5E40AE #7F65C6 #A492D7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5E40AE#FFFFFF#000000##FFFFFF
##5E40AE1.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)
#0057B1
Deuteranopia (green-blind)
#0053AC
Tritanopia (blue-blind)
#465A71
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5e40ae;
/* rgb */ color: rgb(94, 64, 174);
/* oklch */ color: oklch(46.7% 0.167 291.1);
Tailwind
colors: {
  custom: {
    50: '#9276c7',
    500: '#5e40ae',
    950: '#000000',
  },
}
SCSS
$custom: #5e40ae;
$custom-light: #9276c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5e40ae",
  "rgb": {
    "r": 94,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 256.364,
    "s": 46.218,
    "l": 46.667
  },
  "oklch": {
    "l": 0.46677,
    "c": 0.16701,
    "h": 291.1
  },
  "luminance": 0.09102
}

Semantic roles & 50–950 ramp

primary
#5E40AE
secondary
#B2C288
accent
#D652B2
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5E40AE

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

Preview Lab → · Contrast checker → · Palette generator →

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