#5E1F71#5E1F71

#5E1F71 is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.5% C 0.142 H 317.3°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#5E1F71
RGBrgb(94, 31, 113)
HSLhsl(286, 57%, 28%)
HSVhsv(286, 73%, 44%)
CMYKcmyk(16.8%, 72.6%, 0%, 55.7%)
CIE-LABlab(25.42, 41.38, -34.29)
CIE-LCHlch(25.42, 53.74, 320.35°)
OKLaboklab(37.52% 0.1043 -0.0963)
OKLCHoklch(37.52% 0.142 317.3)
XYZxyz(8.0863, 4.5522, 16.0723)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1F71 #32711F
analogous
#351F71 #5E1F71 #711F5B
triadic
#5E1F71 #715E1F #1F715E
tetradic
#5E1F71 #71351F #32711F #1F5B71
square
#5E1F71 #71351F #32711F #1F5B71
split-complementary
#5E1F71 #5B711F #1F7135
monochromatic
#140718 #361241 #5E1F71 #862CA1 #AA40CB

Accessibility & contrast

On white

10.99
#5E1F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5E1F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1F71
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1F71#FFFFFF#000000##FFFFFF
##5E1F711.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003873
Deuteranopia (green-blind)
#213E6F
Tritanopia (blue-blind)
#5D2F45
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5e1f71;
/* rgb */ color: rgb(94, 31, 113);
/* oklch */ color: oklch(37.5% 0.142 317.3);
Tailwind
colors: {
  custom: {
    50: '#8f619a',
    500: '#5e1f71',
    950: '#000000',
  },
}
SCSS
$custom: #5e1f71;
$custom-light: #8f619a;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1f71",
  "rgb": {
    "r": 94,
    "g": 31,
    "b": 113
  },
  "hsl": {
    "h": 286.098,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.37518,
    "c": 0.14197,
    "h": 317.3
  },
  "luminance": 0.04552
}

Semantic roles & 50–950 ramp

primary
#5E1F71
secondary
#5DA547
accent
#E0486B
background
#F9F5F9
surface
#F1EAF2
border
#CBC6CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5E1F71

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

Preview Lab → · Contrast checker → · Palette generator →

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