#5E1271#5E1271

#5E1271 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.3% C 0.157 H 318.3°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#5E1271
RGBrgb(94, 18, 113)
HSLhsl(288, 73%, 26%)
HSVhsv(288, 84%, 44%)
CMYKcmyk(16.8%, 84.1%, 0%, 55.7%)
CIE-LABlab(23.69, 46.33, -37.07)
CIE-LCHlch(23.69, 59.34, 321.33°)
OKLaboklab(36.29% 0.1172 -0.1043)
OKLCHoklch(36.29% 0.157 318.3)
XYZxyz(7.8126, 4.0049, 15.9811)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1271 #257112
analogous
#2E1271 #5E1271 #711254
triadic
#5E1271 #715E12 #12715E
tetradic
#5E1271 #712E12 #257112 #125471
square
#5E1271 #712E12 #257112 #125471
split-complementary
#5E1271 #547112 #12712E
monochromatic
#16041A #320A3C #5E1271 #8A1AA6 #B623DB

Accessibility & contrast

On white

11.66
#5E1271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#5E1271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1271
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1271#FFFFFF#000000##FFFFFF
##5E12711.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#173B6F
Tritanopia (blue-blind)
#5D2842
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5e1271;
/* rgb */ color: rgb(94, 18, 113);
/* oklch */ color: oklch(36.3% 0.157 318.3);
Tailwind
colors: {
  custom: {
    50: '#8f5b9a',
    500: '#5e1271',
    950: '#000000',
  },
}
SCSS
$custom: #5e1271;
$custom-light: #8f5b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1271",
  "rgb": {
    "r": 94,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 288,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.36289,
    "c": 0.1569,
    "h": 318.3
  },
  "luminance": 0.04005
}

Semantic roles & 50–950 ramp

primary
#5E1271
secondary
#4DA837
accent
#EF395D
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5E1271

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

Preview Lab → · Contrast checker → · Palette generator →

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