#5E4EA2#5E4EA2

#5E4EA2 is a mid, vivid violet. Relative luminance 0.104; OKLCH L 48.2% C 0.131 H 289.3°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#5E4EA2
RGBrgb(94, 78, 162)
HSLhsl(251, 35%, 47%)
HSVhsv(251, 52%, 64%)
CMYKcmyk(42%, 51.9%, 0%, 36.5%)
CIE-LABlab(38.61, 27.77, -43.44)
CIE-LCHlch(38.61, 51.55, 302.59°)
OKLaboklab(48.21% 0.0432 -0.1232)
OKLCHoklch(48.21% 0.131 289.3)
XYZxyz(13.8603, 10.4366, 35.4596)
Luminance0.1044 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E4EA2 #92A24E
analogous
#4E68A2 #5E4EA2 #884EA2
triadic
#5E4EA2 #A25E4E #4EA25E
tetradic
#5E4EA2 #A24E68 #92A24E #4EA288
square
#5E4EA2 #A24E68 #92A24E #4EA288
split-complementary
#5E4EA2 #A2884E #68A24E
monochromatic
#2E264F #463A79 #5E4EA2 #8072BB #A59BCF

Accessibility & contrast

On white

6.80
#5E4EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#5E4EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E4EA2
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E4EA2#FFFFFF#000000##FFFFFF
##5E4EA21.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5DA5
Deuteranopia (green-blind)
#2B59A0
Tritanopia (blue-blind)
#4B5F70
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5e4ea2;
/* rgb */ color: rgb(94, 78, 162);
/* oklch */ color: oklch(48.2% 0.131 289.3);
Tailwind
colors: {
  custom: {
    50: '#9080be',
    500: '#5e4ea2',
    950: '#000000',
  },
}
SCSS
$custom: #5e4ea2;
$custom-light: #9080be;
$custom-dark: #000000;
JSON
{
  "hex": "#5e4ea2",
  "rgb": {
    "r": 94,
    "g": 78,
    "b": 162
  },
  "hsl": {
    "h": 251.429,
    "s": 35,
    "l": 47.059
  },
  "oklch": {
    "l": 0.48211,
    "c": 0.13059,
    "h": 289.3
  },
  "luminance": 0.10437
}

Semantic roles & 50–950 ramp

primary
#5E4EA2
secondary
#B3BC90
accent
#CB5DB6
background
#F9F7FB
surface
#F1EEF7
border
#CBC9D0
text
#0D0A12
muted
#7E7C81

Preview Lab

Preview with #5E4EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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