#5D147F#5D147F

#5D147F is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.4% C 0.167 H 311.6°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#5D147F
RGBrgb(93, 20, 127)
HSLhsl(281, 73%, 29%)
HSVhsv(281, 84%, 50%)
CMYKcmyk(26.8%, 84.3%, 0%, 50.2%)
CIE-LABlab(24.83, 48.44, -44.17)
CIE-LCHlch(24.83, 65.55, 317.64°)
OKLaboklab(37.4% 0.1112 -0.1252)
OKLCHoklch(37.4% 0.167 311.6)
XYZxyz(8.5944, 4.3600, 20.4634)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D147F #367F14
analogous
#28147F #5D147F #7F146C
triadic
#5D147F #7F5D14 #147F5D
tetradic
#5D147F #7F2814 #367F14 #146C7F
square
#5D147F #7F2814 #367F14 #146C7F
split-complementary
#5D147F #6C7F14 #147F28
monochromatic
#13041A #360C4A #5D147F #841CB4 #A72FDE

Accessibility & contrast

On white

11.22
#5D147F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5D147F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D147F
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D147F#FFFFFF#000000##FFFFFF
##5D147F1.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#003C7D
Tritanopia (blue-blind)
#59304B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5d147f;
/* rgb */ color: rgb(93, 20, 127);
/* oklch */ color: oklch(37.4% 0.167 311.6);
Tailwind
colors: {
  custom: {
    50: '#8f5ca5',
    500: '#5d147f',
    950: '#000000',
  },
}
SCSS
$custom: #5d147f;
$custom-light: #8f5ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d147f",
  "rgb": {
    "r": 93,
    "g": 20,
    "b": 127
  },
  "hsl": {
    "h": 280.935,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.37398,
    "c": 0.16749,
    "h": 311.6
  },
  "luminance": 0.0436
}

Semantic roles & 50–950 ramp

primary
#5D147F
secondary
#61B43B
accent
#EF3873
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D147F

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

Preview Lab → · Contrast checker → · Palette generator →

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