#5D147D#5D147D

#5D147D is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.2% C 0.166 H 312.4°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#5D147D
RGBrgb(93, 20, 125)
HSLhsl(282, 72%, 28%)
HSVhsv(282, 84%, 49%)
CMYKcmyk(25.6%, 84%, 0%, 51%)
CIE-LABlab(24.67, 48.01, -43.16)
CIE-LCHlch(24.67, 64.56, 318.04°)
OKLaboklab(37.23% 0.1117 -0.1223)
OKLCHoklch(37.23% 0.166 312.4)
XYZxyz(8.4653, 4.3084, 19.7837)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D147D #347D14
analogous
#28147D #5D147D #7D1468
triadic
#5D147D #7D5D14 #147D5D
tetradic
#5D147D #7D2814 #347D14 #14687D
square
#5D147D #7D2814 #347D14 #14687D
split-complementary
#5D147D #687D14 #147D28
monochromatic
#14041A #360C48 #5D147D #841CB2 #A82EDE

Accessibility & contrast

On white

11.28
#5D147D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#5D147D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D147D
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D147D#FFFFFF#000000##FFFFFF
##5D147D1.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#003C7B
Tritanopia (blue-blind)
#592F4A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5d147d;
/* rgb */ color: rgb(93, 20, 125);
/* oklch */ color: oklch(37.2% 0.166 312.4);
Tailwind
colors: {
  custom: {
    50: '#8f5ca3',
    500: '#5d147d',
    950: '#000000',
  },
}
SCSS
$custom: #5d147d;
$custom-light: #8f5ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d147d",
  "rgb": {
    "r": 93,
    "g": 20,
    "b": 125
  },
  "hsl": {
    "h": 281.714,
    "s": 72.414,
    "l": 28.431
  },
  "oklch": {
    "l": 0.37234,
    "c": 0.16563,
    "h": 312.4
  },
  "luminance": 0.04308
}

Semantic roles & 50–950 ramp

primary
#5D147D
secondary
#5FB23A
accent
#EF3970
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D147D

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

Preview Lab → · Contrast checker → · Palette generator →

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