#5E2591#5E2591

#5E2591 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.7% C 0.168 H 303.7°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#5E2591
RGBrgb(94, 37, 145)
HSLhsl(272, 59%, 36%)
HSVhsv(272, 74%, 57%)
CMYKcmyk(35.2%, 74.5%, 0%, 43.1%)
CIE-LABlab(28.77, 46.10, -49.00)
CIE-LCHlch(28.77, 67.28, 313.25°)
OKLaboklab(40.65% 0.0932 -0.1395)
OKLCHoklch(40.65% 0.168 303.7)
XYZxyz(10.3873, 5.7472, 27.3447)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2591 #589125
analogous
#282591 #5E2591 #91258E
triadic
#5E2591 #915E25 #25915E
tetradic
#5E2591 #912825 #589125 #258E91
square
#5E2591 #912825 #589125 #258E91
split-complementary
#5E2591 #8E9125 #259128
monochromatic
#1F0C2F #3E1960 #5E2591 #7E31C2 #9C5BD5

Accessibility & contrast

On white

9.77
#5E2591 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5E2591 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2591
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2591#FFFFFF#000000##FFFFFF
##5E25911.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004394
Deuteranopia (green-blind)
#00448F
Tritanopia (blue-blind)
#543F59
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5e2591;
/* rgb */ color: rgb(94, 37, 145);
/* oklch */ color: oklch(40.7% 0.168 303.7);
Tailwind
colors: {
  custom: {
    50: '#9165b2',
    500: '#5e2591',
    950: '#000000',
  },
}
SCSS
$custom: #5e2591;
$custom-light: #9165b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2591",
  "rgb": {
    "r": 94,
    "g": 37,
    "b": 145
  },
  "hsl": {
    "h": 271.667,
    "s": 59.341,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40652,
    "c": 0.1678,
    "h": 303.7
  },
  "luminance": 0.05747
}

Semantic roles & 50–950 ramp

primary
#5E2591
secondary
#86BA58
accent
#E34590
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E2591

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

Preview Lab → · Contrast checker → · Palette generator →

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