#5E4591#5E4591

#5E4591 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 45.4% C 0.121 H 296.4°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#5E4591
RGBrgb(94, 69, 145)
HSLhsl(260, 36%, 42%)
HSVhsv(260, 52%, 57%)
CMYKcmyk(35.2%, 52.4%, 0%, 43.1%)
CIE-LABlab(35.36, 28.43, -38.38)
CIE-LCHlch(35.36, 47.76, 306.53°)
OKLaboklab(45.45% 0.0539 -0.1084)
OKLCHoklch(45.45% 0.121 296.4)
XYZxyz(11.8538, 8.6801, 27.8335)
Luminance0.0868 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E4591 #789145
analogous
#455291 #5E4591 #844591
triadic
#5E4591 #915E45 #45915E
tetradic
#5E4591 #914552 #789145 #459184
square
#5E4591 #914552 #789145 #459184
split-complementary
#5E4591 #918445 #529145
monochromatic
#281E3E #433168 #5E4591 #7B60B3 #9E89C7

Accessibility & contrast

On white

7.68
#5E4591 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5E4591 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E4591
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E4591#FFFFFF#000000##FFFFFF
##5E45911.007.682.747.68
#FFFFFF7.681.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285494
Deuteranopia (green-blind)
#2E528F
Tritanopia (blue-blind)
#525464
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5e4591;
/* rgb */ color: rgb(94, 69, 145);
/* oklch */ color: oklch(45.4% 0.121 296.4);
Tailwind
colors: {
  custom: {
    50: '#8e79b2',
    500: '#5e4591',
    950: '#000000',
  },
}
SCSS
$custom: #5e4591;
$custom-light: #8e79b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e4591",
  "rgb": {
    "r": 94,
    "g": 69,
    "b": 145
  },
  "hsl": {
    "h": 259.737,
    "s": 35.514,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45448,
    "c": 0.12108,
    "h": 296.4
  },
  "luminance": 0.0868
}

Semantic roles & 50–950 ramp

primary
#5E4591
secondary
#A2B280
accent
#CC5CA7
background
#F8F7FB
surface
#F0EDF6
border
#CBC8D0
text
#0D0911
muted
#7D7B80

Preview Lab

Preview with #5E4591

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

Preview Lab → · Contrast checker → · Palette generator →

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