#5E4FA7#5E4FA7

#5E4FA7 is a mid, vivid violet. Relative luminance 0.108; OKLCH L 48.7% C 0.136 H 288.1°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#5E4FA7
RGBrgb(94, 79, 167)
HSLhsl(250, 36%, 48%)
HSVhsv(250, 53%, 65%)
CMYKcmyk(43.7%, 52.7%, 0%, 34.5%)
CIE-LABlab(39.18, 28.63, -45.52)
CIE-LCHlch(39.18, 53.78, 302.17°)
OKLaboklab(48.73% 0.0423 -0.1293)
OKLCHoklch(48.73% 0.136 288.1)
XYZxyz(14.3852, 10.7611, 37.8709)
Luminance0.1076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E4FA7 #98A74F
analogous
#4F6CA7 #5E4FA7 #8A4FA7
triadic
#5E4FA7 #A75E4F #4FA75E
tetradic
#5E4FA7 #A74F6C #98A74F #4FA78A
square
#5E4FA7 #A74F6C #98A74F #4FA78A
split-complementary
#5E4FA7 #A78A4F #6CA74F
monochromatic
#2F2854 #473B7D #5E4FA7 #8275BE #A89FD2

Accessibility & contrast

On white

6.66
#5E4FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5E4FA7
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E4FA7#FFFFFF#000000##FFFFFF
##5E4FA71.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275EAA
Deuteranopia (green-blind)
#275AA5
Tritanopia (blue-blind)
#486273
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5e4fa7;
/* rgb */ color: rgb(94, 79, 167);
/* oklch */ color: oklch(48.7% 0.136 288.1);
Tailwind
colors: {
  custom: {
    50: '#9080c2',
    500: '#5e4fa7',
    950: '#000000',
  },
}
SCSS
$custom: #5e4fa7;
$custom-light: #9080c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e4fa7",
  "rgb": {
    "r": 94,
    "g": 79,
    "b": 167
  },
  "hsl": {
    "h": 250.227,
    "s": 35.772,
    "l": 48.235
  },
  "oklch": {
    "l": 0.4873,
    "c": 0.13609,
    "h": 288.1
  },
  "luminance": 0.10762
}

Semantic roles & 50–950 ramp

primary
#5E4FA7
secondary
#B7BE93
accent
#CC5CB9
background
#F9F7FC
surface
#F1EEF8
border
#CBC9D1
text
#0D0A12
muted
#7E7C81

Preview Lab

Preview with #5E4FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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