#5E4FA3#5E4FA3

#5E4FA3 is a mid, vivid violet. Relative luminance 0.106; OKLCH L 48.5% C 0.130 H 288.8°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#5E4FA3
RGBrgb(94, 79, 163)
HSLhsl(251, 35%, 47%)
HSVhsv(251, 52%, 64%)
CMYKcmyk(42.3%, 51.5%, 0%, 36.1%)
CIE-LABlab(38.93, 27.44, -43.54)
CIE-LCHlch(38.93, 51.47, 302.23°)
OKLaboklab(48.46% 0.042 -0.1235)
OKLCHoklch(48.46% 0.13 288.8)
XYZxyz(14.0211, 10.6155, 35.9535)
Luminance0.1062 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E4FA3 #94A34F
analogous
#4F6AA3 #5E4FA3 #884FA3
triadic
#5E4FA3 #A35E4F #4FA35E
tetradic
#5E4FA3 #A34F6A #94A34F #4FA388
square
#5E4FA3 #A34F6A #94A34F #4FA388
split-complementary
#5E4FA3 #A3884F #6AA34F
monochromatic
#2E2751 #463B7A #5E4FA3 #8174BB #A69DCF

Accessibility & contrast

On white

6.72
#5E4FA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#5E4FA3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E4FA3
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E4FA3#FFFFFF#000000##FFFFFF
##5E4FA31.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5DA6
Deuteranopia (green-blind)
#2C5AA1
Tritanopia (blue-blind)
#4A6071
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5e4fa3;
/* rgb */ color: rgb(94, 79, 163);
/* oklch */ color: oklch(48.5% 0.130 288.8);
Tailwind
colors: {
  custom: {
    50: '#9080bf',
    500: '#5e4fa3',
    950: '#000000',
  },
}
SCSS
$custom: #5e4fa3;
$custom-light: #9080bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5e4fa3",
  "rgb": {
    "r": 94,
    "g": 79,
    "b": 163
  },
  "hsl": {
    "h": 250.714,
    "s": 34.711,
    "l": 47.451
  },
  "oklch": {
    "l": 0.48463,
    "c": 0.13048,
    "h": 288.8
  },
  "luminance": 0.10616
}

Semantic roles & 50–950 ramp

primary
#5E4FA3
secondary
#B5BC91
accent
#CB5DB7
background
#F9F7FB
surface
#F1EEF7
border
#CBC9D0
text
#0D0A12
muted
#7E7C81

Preview Lab

Preview with #5E4FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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