#5D1273#5D1273

#5D1273 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.3% C 0.158 H 316.8°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#5D1273
RGBrgb(93, 18, 115)
HSLhsl(286, 73%, 26%)
HSVhsv(286, 84%, 45%)
CMYKcmyk(19.1%, 84.3%, 0%, 54.9%)
CIE-LABlab(23.66, 46.54, -38.40)
CIE-LCHlch(23.66, 60.34, 320.47°)
OKLaboklab(36.29% 0.1155 -0.1083)
OKLCHoklch(36.29% 0.158 316.8)
XYZxyz(7.8246, 3.9979, 16.5758)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1273 #287312
analogous
#2C1273 #5D1273 #731258
triadic
#5D1273 #735D12 #12735D
tetradic
#5D1273 #732C12 #287312 #125873
square
#5D1273 #732C12 #287312 #125873
split-complementary
#5D1273 #587312 #12732C
monochromatic
#15041A #320A3E #5D1273 #881AA8 #B223DD

Accessibility & contrast

On white

11.67
#5D1273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#5D1273 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1273
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1273#FFFFFF#000000##FFFFFF
##5D12731.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003476
Deuteranopia (green-blind)
#133A71
Tritanopia (blue-blind)
#5C2943
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5d1273;
/* rgb */ color: rgb(93, 18, 115);
/* oklch */ color: oklch(36.3% 0.158 316.8);
Tailwind
colors: {
  custom: {
    50: '#8f5b9c',
    500: '#5d1273',
    950: '#000000',
  },
}
SCSS
$custom: #5d1273;
$custom-light: #8f5b9c;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1273",
  "rgb": {
    "r": 93,
    "g": 18,
    "b": 115
  },
  "hsl": {
    "h": 286.392,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.36287,
    "c": 0.15832,
    "h": 316.8
  },
  "luminance": 0.03998
}

Semantic roles & 50–950 ramp

primary
#5D1273
secondary
#51AA37
accent
#F03862
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5D1273

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

Preview Lab → · Contrast checker → · Palette generator →

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