#5E3591#5E3591

#5E3591 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 42.8% C 0.146 H 300.9°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#5E3591
RGBrgb(94, 53, 145)
HSLhsl(267, 46%, 39%)
HSVhsv(267, 63%, 57%)
CMYKcmyk(35.2%, 63.4%, 0%, 43.1%)
CIE-LABlab(31.74, 37.88, -44.19)
CIE-LCHlch(31.74, 58.20, 310.61°)
OKLaboklab(42.78% 0.0751 -0.1254)
OKLCHoklch(42.78% 0.146 300.9)
XYZxyz(10.9988, 6.9702, 27.5485)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E3591 #689135
analogous
#353A91 #5E3591 #8C3591
triadic
#5E3591 #915E35 #35915E
tetradic
#5E3591 #91353A #689135 #35918C
square
#5E3591 #91353A #689135 #35918C
split-complementary
#5E3591 #918C35 #3A9135
monochromatic
#241437 #412564 #5E3591 #7B47BC #9B74CC

Accessibility & contrast

On white

8.77
#5E3591 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5E3591 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E3591
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E3591#FFFFFF#000000##FFFFFF
##5E35911.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A94
Deuteranopia (green-blind)
#144A8F
Tritanopia (blue-blind)
#53495E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5e3591;
/* rgb */ color: rgb(94, 53, 145);
/* oklch */ color: oklch(42.8% 0.146 300.9);
Tailwind
colors: {
  custom: {
    50: '#8f6eb2',
    500: '#5e3591',
    950: '#000000',
  },
}
SCSS
$custom: #5e3591;
$custom-light: #8f6eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e3591",
  "rgb": {
    "r": 94,
    "g": 53,
    "b": 145
  },
  "hsl": {
    "h": 266.739,
    "s": 46.465,
    "l": 38.824
  },
  "oklch": {
    "l": 0.42784,
    "c": 0.1462,
    "h": 300.9
  },
  "luminance": 0.0697
}

Semantic roles & 50–950 ramp

primary
#5E3591
secondary
#95B56D
accent
#D6529B
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5E3591

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

Preview Lab → · Contrast checker → · Palette generator →

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