#5D1458#5D1458

#5D1458 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.6% C 0.133 H 331.0°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#5D1458
RGBrgb(93, 20, 88)
HSLhsl(304, 65%, 22%)
HSVhsv(304, 78%, 36%)
CMYKcmyk(0%, 78.5%, 5.4%, 63.5%)
CIE-LABlab(22.06, 40.68, -23.30)
CIE-LCHlch(22.06, 46.88, 330.20°)
OKLaboklab(34.56% 0.116 -0.0642)
OKLCHoklch(34.56% 0.133 331)
XYZxyz(6.5258, 3.5326, 9.5688)
Luminance0.0353 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1458 #145D19
analogous
#3E145D #5D1458 #5D1433
triadic
#5D1458 #585D14 #14585D
tetradic
#5D1458 #5D3E14 #145D19 #14335D
square
#5D1458 #5D3E14 #145D19 #14335D
split-complementary
#5D1458 #335D14 #145D3E
monochromatic
#190518 #2B0928 #5D1458 #8F1F88 #C22AB7

Accessibility & contrast

On white

12.31
#5D1458 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#5D1458 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1458
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1458#FFFFFF#000000##FFFFFF
##5D14581.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2E5A
Deuteranopia (green-blind)
#2B3856
Tritanopia (blue-blind)
#611D35
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5d1458;
/* rgb */ color: rgb(93, 20, 88);
/* oklch */ color: oklch(34.6% 0.133 331.0);
Tailwind
colors: {
  custom: {
    50: '#8e5a87',
    500: '#5d1458',
    950: '#000000',
  },
}
SCSS
$custom: #5d1458;
$custom-light: #8e5a87;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1458",
  "rgb": {
    "r": 93,
    "g": 20,
    "b": 88
  },
  "hsl": {
    "h": 304.11,
    "s": 64.602,
    "l": 22.157
  },
  "oklch": {
    "l": 0.34563,
    "c": 0.13254,
    "h": 331
  },
  "luminance": 0.03532
}

Semantic roles & 50–950 ramp

primary
#5D1458
secondary
#38953E
accent
#E84C40
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0D040B
muted
#7D797C

Preview Lab

Preview with #5D1458

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

Preview Lab → · Contrast checker → · Palette generator →

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