#5E4ABA#5E4ABA

#5E4ABA is a mid, vivid violet. Relative luminance 0.108; OKLCH L 49.2% C 0.169 H 286.6°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#5E4ABA
RGBrgb(94, 74, 186)
HSLhsl(251, 45%, 51%)
HSVhsv(251, 60%, 73%)
CMYKcmyk(49.5%, 60.2%, 0%, 27.1%)
CIE-LABlab(39.28, 37.38, -56.58)
CIE-LCHlch(39.28, 67.81, 303.45°)
OKLaboklab(49.22% 0.0484 -0.1619)
OKLCHoklch(49.22% 0.169 286.6)
XYZxyz(15.9252, 10.8217, 47.6945)
Luminance0.1082 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E4ABA #A6BA4A
analogous
#4A6EBA #5E4ABA #964ABA
triadic
#5E4ABA #BA5E4A #4ABA5E
tetradic
#5E4ABA #BA4A6E #A6BA4A #4ABA96
square
#5E4ABA #BA4A6E #A6BA4A #4ABA96
split-complementary
#5E4ABA #BA964A #6EBA4A
monochromatic
#312664 #473790 #5E4ABA #8576CB #ADA3DC

Accessibility & contrast

On white

6.64
#5E4ABA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#5E4ABA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E4ABA
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E4ABA#FFFFFF#000000##FFFFFF
##5E4ABA1.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBE
Deuteranopia (green-blind)
#0059B8
Tritanopia (blue-blind)
#3E647B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5e4aba;
/* rgb */ color: rgb(94, 74, 186);
/* oklch */ color: oklch(49.2% 0.169 286.6);
Tailwind
colors: {
  custom: {
    50: '#937dcf',
    500: '#5e4aba',
    950: '#000000',
  },
}
SCSS
$custom: #5e4aba;
$custom-light: #937dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#5e4aba",
  "rgb": {
    "r": 94,
    "g": 74,
    "b": 186
  },
  "hsl": {
    "h": 250.714,
    "s": 44.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.49218,
    "c": 0.16896,
    "h": 286.6
  },
  "luminance": 0.10822
}

Semantic roles & 50–950 ramp

primary
#5E4ABA
secondary
#C0C997
accent
#D553BD
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0E0A14
muted
#7E7C82

Preview Lab

Preview with #5E4ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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