#5E2791#5E2791

#5E2791 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.9% C 0.165 H 303.5°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#5E2791
RGBrgb(94, 39, 145)
HSLhsl(271, 58%, 36%)
HSVhsv(271, 73%, 57%)
CMYKcmyk(35.2%, 73.1%, 0%, 43.1%)
CIE-LABlab(29.10, 45.17, -48.47)
CIE-LCHlch(29.10, 66.25, 312.98°)
OKLaboklab(40.89% 0.0912 -0.138)
OKLCHoklch(40.89% 0.165 303.5)
XYZxyz(10.4513, 5.8751, 27.3660)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2791 #5A9127
analogous
#292791 #5E2791 #91278F
triadic
#5E2791 #915E27 #27915E
tetradic
#5E2791 #912927 #5A9127 #278F91
square
#5E2791 #912927 #5A9127 #278F91
split-complementary
#5E2791 #8F9127 #279129
monochromatic
#1F0D31 #3F1A61 #5E2791 #7D34C1 #9B5FD4

Accessibility & contrast

On white

9.66
#5E2791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5E2791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2791
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2791#FFFFFF#000000##FFFFFF
##5E27911.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004394
Deuteranopia (green-blind)
#00448F
Tritanopia (blue-blind)
#544059
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5e2791;
/* rgb */ color: rgb(94, 39, 145);
/* oklch */ color: oklch(40.9% 0.165 303.5);
Tailwind
colors: {
  custom: {
    50: '#9066b2',
    500: '#5e2791',
    950: '#000000',
  },
}
SCSS
$custom: #5e2791;
$custom-light: #9066b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2791",
  "rgb": {
    "r": 94,
    "g": 39,
    "b": 145
  },
  "hsl": {
    "h": 271.132,
    "s": 57.609,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40886,
    "c": 0.16537,
    "h": 303.5
  },
  "luminance": 0.05875
}

Semantic roles & 50–950 ramp

primary
#5E2791
secondary
#88B95B
accent
#E14791
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E2791

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

Preview Lab → · Contrast checker → · Palette generator →

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