#5E4FA6#5E4FA6

#5E4FA6 is a mid, vivid violet. Relative luminance 0.107; OKLCH L 48.7% C 0.135 H 288.3°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#5E4FA6
RGBrgb(94, 79, 166)
HSLhsl(250, 36%, 48%)
HSVhsv(250, 52%, 65%)
CMYKcmyk(43.4%, 52.4%, 0%, 34.9%)
CIE-LABlab(39.11, 28.34, -45.03)
CIE-LCHlch(39.11, 53.20, 302.18°)
OKLaboklab(48.66% 0.0422 -0.1279)
OKLCHoklch(48.66% 0.135 288.3)
XYZxyz(14.2931, 10.7243, 37.3859)
Luminance0.1072 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E4FA6 #97A64F
analogous
#4F6BA6 #5E4FA6 #894FA6
triadic
#5E4FA6 #A65E4F #4FA65E
tetradic
#5E4FA6 #A64F6B #97A64F #4FA689
square
#5E4FA6 #A64F6B #97A64F #4FA689
split-complementary
#5E4FA6 #A6894F #6BA64F
monochromatic
#2F2853 #473B7D #5E4FA6 #8175BD #A79ED1

Accessibility & contrast

On white

6.68
#5E4FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#5E4FA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E4FA6
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E4FA6#FFFFFF#000000##FFFFFF
##5E4FA61.006.683.156.68
#FFFFFF6.681.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285EA9
Deuteranopia (green-blind)
#285AA4
Tritanopia (blue-blind)
#496173
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5e4fa6;
/* rgb */ color: rgb(94, 79, 166);
/* oklch */ color: oklch(48.7% 0.135 288.3);
Tailwind
colors: {
  custom: {
    50: '#9080c1',
    500: '#5e4fa6',
    950: '#000000',
  },
}
SCSS
$custom: #5e4fa6;
$custom-light: #9080c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e4fa6",
  "rgb": {
    "r": 94,
    "g": 79,
    "b": 166
  },
  "hsl": {
    "h": 250.345,
    "s": 35.51,
    "l": 48.039
  },
  "oklch": {
    "l": 0.48663,
    "c": 0.13469,
    "h": 288.3
  },
  "luminance": 0.10725
}

Semantic roles & 50–950 ramp

primary
#5E4FA6
secondary
#B7BE93
accent
#CC5CB8
background
#F9F7FB
surface
#F1EEF7
border
#CBC9D0
text
#0D0A12
muted
#7E7C81

Preview Lab

Preview with #5E4FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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