#5D2871#5D2871

#5D2871 is a dark, vivid purple. Relative luminance 0.050; OKLCH L 38.5% C 0.128 H 315.6°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#5D2871
RGBrgb(93, 40, 113)
HSLhsl(284, 48%, 30%)
HSVhsv(284, 65%, 44%)
CMYKcmyk(17.7%, 64.6%, 0%, 55.7%)
CIE-LABlab(26.84, 36.75, -32.02)
CIE-LCHlch(26.84, 48.74, 318.94°)
OKLaboklab(38.51% 0.0917 -0.0897)
OKLCHoklch(38.51% 0.128 315.6)
XYZxyz(8.2532, 5.0373, 16.1571)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2871 #3C7128
analogous
#392871 #5D2871 #712860
triadic
#5D2871 #715D28 #28715D
tetradic
#5D2871 #713928 #3C7128 #286071
square
#5D2871 #713928 #3C7128 #286071
split-complementary
#5D2871 #607128 #287139
monochromatic
#130817 #381844 #5D2871 #82389E #A352C2

Accessibility & contrast

On white

10.46
#5D2871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5D2871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2871
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2871#FFFFFF#000000##FFFFFF
##5D28711.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#103C73
Deuteranopia (green-blind)
#28416F
Tritanopia (blue-blind)
#5C3548
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5d2871;
/* rgb */ color: rgb(93, 40, 113);
/* oklch */ color: oklch(38.5% 0.128 315.6);
Tailwind
colors: {
  custom: {
    50: '#8d659a',
    500: '#5d2871',
    950: '#000000',
  },
}
SCSS
$custom: #5d2871;
$custom-light: #8d659a;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2871",
  "rgb": {
    "r": 93,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 283.562,
    "s": 47.712,
    "l": 30
  },
  "oklch": {
    "l": 0.3851,
    "c": 0.12828,
    "h": 315.6
  },
  "luminance": 0.05037
}

Semantic roles & 50–950 ramp

primary
#5D2871
secondary
#68A352
accent
#D75075
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060E
muted
#7D7A7E

Preview Lab

Preview with #5D2871

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

Preview Lab → · Contrast checker → · Palette generator →

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