#5E4AAA#5E4AAA

#5E4AAA is a mid, vivid violet. Relative luminance 0.102; OKLCH L 48.0% C 0.148 H 289.2°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#5E4AAA
RGBrgb(94, 74, 170)
HSLhsl(253, 39%, 48%)
HSVhsv(253, 56%, 67%)
CMYKcmyk(44.7%, 56.5%, 0%, 33.3%)
CIE-LABlab(38.16, 32.59, -48.94)
CIE-LCHlch(38.16, 58.79, 303.66°)
OKLaboklab(48.04% 0.0486 -0.1394)
OKLCHoklch(48.04% 0.148 289.2)
XYZxyz(14.3185, 10.1790, 39.2327)
Luminance0.1018 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E4AAA #96AA4A
analogous
#4A66AA #5E4AAA #8E4AAA
triadic
#5E4AAA #AA5E4A #4AAA5E
tetradic
#5E4AAA #AA4A66 #96AA4A #4AAA8E
square
#5E4AAA #AA4A66 #96AA4A #4AAA8E
split-complementary
#5E4AAA #AA8E4A #66AA4A
monochromatic
#2F2555 #46377F #5E4AAA #8170C1 #A79BD3

Accessibility & contrast

On white

6.92
#5E4AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#5E4AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E4AAA
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E4AAA#FFFFFF#000000##FFFFFF
##5E4AAA1.006.923.046.92
#FFFFFF6.921.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#145CAD
Deuteranopia (green-blind)
#1758A8
Tritanopia (blue-blind)
#475F73
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5e4aaa;
/* rgb */ color: rgb(94, 74, 170);
/* oklch */ color: oklch(48.0% 0.148 289.2);
Tailwind
colors: {
  custom: {
    50: '#917dc4',
    500: '#5e4aaa',
    950: '#000000',
  },
}
SCSS
$custom: #5e4aaa;
$custom-light: #917dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e4aaa",
  "rgb": {
    "r": 94,
    "g": 74,
    "b": 170
  },
  "hsl": {
    "h": 252.5,
    "s": 39.344,
    "l": 47.843
  },
  "oklch": {
    "l": 0.4804,
    "c": 0.14763,
    "h": 289.2
  },
  "luminance": 0.1018
}

Semantic roles & 50–950 ramp

primary
#5E4AAA
secondary
#B6C090
accent
#CF59B7
background
#F9F7FC
surface
#F1EEF8
border
#CBC9D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5E4AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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