#5D1474#5D1474

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

Color values

HEX#5D1474
RGBrgb(93, 20, 116)
HSLhsl(286, 71%, 27%)
HSVhsv(286, 83%, 45%)
CMYKcmyk(19.8%, 82.8%, 0%, 54.5%)
CIE-LABlab(23.96, 46.10, -38.56)
CIE-LCHlch(23.96, 60.11, 320.09°)
OKLaboklab(36.52% 0.1137 -0.1088)
OKLCHoklch(36.52% 0.157 316.3)
XYZxyz(7.9163, 4.0887, 16.8918)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1474 #2B7414
analogous
#2D1474 #5D1474 #74145B
triadic
#5D1474 #745D14 #14745D
tetradic
#5D1474 #742D14 #2B7414 #145B74
square
#5D1474 #742D14 #2B7414 #145B74
split-complementary
#5D1474 #5B7414 #14742D
monochromatic
#15051A #330B40 #5D1474 #871DA8 #AF28DA

Accessibility & contrast

On white

11.55
#5D1474 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D1474
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1474#FFFFFF#000000##FFFFFF
##5D14741.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003577
Deuteranopia (green-blind)
#133B72
Tritanopia (blue-blind)
#5B2B44
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5d1474;
/* rgb */ color: rgb(93, 20, 116);
/* oklch */ color: oklch(36.5% 0.157 316.3);
Tailwind
colors: {
  custom: {
    50: '#8f5c9d',
    500: '#5d1474',
    950: '#000000',
  },
}
SCSS
$custom: #5d1474;
$custom-light: #8f5c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1474",
  "rgb": {
    "r": 93,
    "g": 20,
    "b": 116
  },
  "hsl": {
    "h": 285.625,
    "s": 70.588,
    "l": 26.667
  },
  "oklch": {
    "l": 0.3652,
    "c": 0.15732,
    "h": 316.3
  },
  "luminance": 0.04088
}

Semantic roles & 50–950 ramp

primary
#5D1474
secondary
#55AA3A
accent
#ED3A65
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5D1474

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

Preview Lab → · Contrast checker → · Palette generator →

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