#5D1472#5D1472

#5D1472 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.4% C 0.155 H 317.2°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#5D1472
RGBrgb(93, 20, 114)
HSLhsl(287, 70%, 26%)
HSVhsv(287, 82%, 45%)
CMYKcmyk(18.4%, 82.5%, 0%, 55.3%)
CIE-LABlab(23.81, 45.69, -37.52)
CIE-LCHlch(23.81, 59.12, 320.60°)
OKLaboklab(36.37% 0.114 -0.1057)
OKLCHoklch(36.37% 0.155 317.2)
XYZxyz(7.8012, 4.0427, 16.2857)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1472 #297214
analogous
#2E1472 #5D1472 #721458
triadic
#5D1472 #725D14 #14725D
tetradic
#5D1472 #722E14 #297214 #145872
square
#5D1472 #722E14 #297214 #145872
split-complementary
#5D1472 #587214 #14722E
monochromatic
#15051A #330B3E #5D1472 #871DA6 #B127D9

Accessibility & contrast

On white

11.61
#5D1472 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#5D1472 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1472
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1472#FFFFFF#000000##FFFFFF
##5D14721.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003474
Deuteranopia (green-blind)
#163B70
Tritanopia (blue-blind)
#5C2A43
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5d1472;
/* rgb */ color: rgb(93, 20, 114);
/* oklch */ color: oklch(36.4% 0.155 317.2);
Tailwind
colors: {
  custom: {
    50: '#8f5c9b',
    500: '#5d1472',
    950: '#000000',
  },
}
SCSS
$custom: #5d1472;
$custom-light: #8f5c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1472",
  "rgb": {
    "r": 93,
    "g": 20,
    "b": 114
  },
  "hsl": {
    "h": 286.596,
    "s": 70.149,
    "l": 26.275
  },
  "oklch": {
    "l": 0.36367,
    "c": 0.15548,
    "h": 317.2
  },
  "luminance": 0.04042
}

Semantic roles & 50–950 ramp

primary
#5D1472
secondary
#52A839
accent
#ED3B63
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5D1472

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

Preview Lab → · Contrast checker → · Palette generator →

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