#5E1472#5E1472

#5E1472 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.5% C 0.156 H 317.7°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#5E1472
RGBrgb(94, 20, 114)
HSLhsl(287, 70%, 26%)
HSVhsv(287, 82%, 45%)
CMYKcmyk(17.5%, 82.5%, 0%, 55.3%)
CIE-LABlab(23.98, 45.89, -37.24)
CIE-LCHlch(23.98, 59.10, 320.94°)
OKLaboklab(36.52% 0.1154 -0.1048)
OKLCHoklch(36.52% 0.156 317.7)
XYZxyz(7.9031, 4.0953, 16.2905)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1472 #287214
analogous
#2F1472 #5E1472 #721457
triadic
#5E1472 #725E14 #14725E
tetradic
#5E1472 #722F14 #287214 #145772
square
#5E1472 #722F14 #287214 #145772
split-complementary
#5E1472 #577214 #14722F
monochromatic
#15051A #330B3E #5E1472 #891DA6 #B327D9

Accessibility & contrast

On white

11.54
#5E1472 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#5E1472 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1472
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1472#FFFFFF#000000##FFFFFF
##5E14721.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003574
Deuteranopia (green-blind)
#173B70
Tritanopia (blue-blind)
#5D2943
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5e1472;
/* rgb */ color: rgb(94, 20, 114);
/* oklch */ color: oklch(36.5% 0.156 317.7);
Tailwind
colors: {
  custom: {
    50: '#8f5c9b',
    500: '#5e1472',
    950: '#000000',
  },
}
SCSS
$custom: #5e1472;
$custom-light: #8f5c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1472",
  "rgb": {
    "r": 94,
    "g": 20,
    "b": 114
  },
  "hsl": {
    "h": 287.234,
    "s": 70.149,
    "l": 26.275
  },
  "oklch": {
    "l": 0.36521,
    "c": 0.15588,
    "h": 317.7
  },
  "luminance": 0.04095
}

Semantic roles & 50–950 ramp

primary
#5E1472
secondary
#51A839
accent
#ED3B61
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5E1472

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

Preview Lab → · Contrast checker → · Palette generator →

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