#5E4FA5#5E4FA5

#5E4FA5 is a mid, vivid violet. Relative luminance 0.107; OKLCH L 48.6% C 0.133 H 288.4°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#5E4FA5
RGBrgb(94, 79, 165)
HSLhsl(250, 35%, 48%)
HSVhsv(250, 52%, 65%)
CMYKcmyk(43%, 52.1%, 0%, 35.3%)
CIE-LABlab(39.05, 28.04, -44.53)
CIE-LCHlch(39.05, 52.62, 302.19°)
OKLaboklab(48.6% 0.0422 -0.1264)
OKLCHoklch(48.6% 0.133 288.4)
XYZxyz(14.2017, 10.6878, 36.9047)
Luminance0.1069 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E4FA5 #96A54F
analogous
#4F6BA5 #5E4FA5 #894FA5
triadic
#5E4FA5 #A55E4F #4FA55E
tetradic
#5E4FA5 #A54F6B #96A54F #4FA589
square
#5E4FA5 #A54F6B #96A54F #4FA589
split-complementary
#5E4FA5 #A5894F #6BA54F
monochromatic
#2F2752 #463B7C #5E4FA5 #8175BD #A79ED1

Accessibility & contrast

On white

6.69
#5E4FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#5E4FA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E4FA5
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E4FA5#FFFFFF#000000##FFFFFF
##5E4FA51.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295EA8
Deuteranopia (green-blind)
#295AA3
Tritanopia (blue-blind)
#496172
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5e4fa5;
/* rgb */ color: rgb(94, 79, 165);
/* oklch */ color: oklch(48.6% 0.133 288.4);
Tailwind
colors: {
  custom: {
    50: '#9080c0',
    500: '#5e4fa5',
    950: '#000000',
  },
}
SCSS
$custom: #5e4fa5;
$custom-light: #9080c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e4fa5",
  "rgb": {
    "r": 94,
    "g": 79,
    "b": 165
  },
  "hsl": {
    "h": 250.465,
    "s": 35.246,
    "l": 47.843
  },
  "oklch": {
    "l": 0.48596,
    "c": 0.13328,
    "h": 288.4
  },
  "luminance": 0.10688
}

Semantic roles & 50–950 ramp

primary
#5E4FA5
secondary
#B6BD92
accent
#CB5DB8
background
#F9F7FB
surface
#F1EEF7
border
#CBC9D0
text
#0D0A12
muted
#7E7C81

Preview Lab

Preview with #5E4FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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