#5D1271#5D1271

#5D1271 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.1% C 0.157 H 317.8°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#5D1271
RGBrgb(93, 18, 113)
HSLhsl(287, 73%, 26%)
HSVhsv(287, 84%, 44%)
CMYKcmyk(17.7%, 84.1%, 0%, 55.7%)
CIE-LABlab(23.51, 46.13, -37.36)
CIE-LCHlch(23.51, 59.36, 321.00°)
OKLaboklab(36.13% 0.1159 -0.1052)
OKLCHoklch(36.13% 0.157 317.8)
XYZxyz(7.7107, 3.9524, 15.9763)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1271 #267112
analogous
#2D1271 #5D1271 #711255
triadic
#5D1271 #715D12 #12715D
tetradic
#5D1271 #712D12 #267112 #125571
square
#5D1271 #712D12 #267112 #125571
split-complementary
#5D1271 #557112 #12712D
monochromatic
#16041A #320A3C #5D1271 #881AA6 #B423DB

Accessibility & contrast

On white

11.73
#5D1271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#5D1271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1271
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1271#FFFFFF#000000##FFFFFF
##5D12711.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#163A6F
Tritanopia (blue-blind)
#5C2842
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5d1271;
/* rgb */ color: rgb(93, 18, 113);
/* oklch */ color: oklch(36.1% 0.157 317.8);
Tailwind
colors: {
  custom: {
    50: '#8f5b9a',
    500: '#5d1271',
    950: '#000000',
  },
}
SCSS
$custom: #5d1271;
$custom-light: #8f5b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1271",
  "rgb": {
    "r": 93,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 287.368,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.36133,
    "c": 0.15652,
    "h": 317.8
  },
  "luminance": 0.03952
}

Semantic roles & 50–950 ramp

primary
#5D1271
secondary
#4FA837
accent
#EF395F
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5D1271

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

Preview Lab → · Contrast checker → · Palette generator →

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