#5D217A#5D217A

#5D217A is a dark, vivid purple. Relative luminance 0.048; OKLCH L 38.3% C 0.148 H 312.4°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#5D217A
RGBrgb(93, 33, 122)
HSLhsl(280, 57%, 30%)
HSVhsv(280, 73%, 48%)
CMYKcmyk(23.8%, 73%, 0%, 52.2%)
CIE-LABlab(26.22, 42.24, -38.75)
CIE-LCHlch(26.22, 57.33, 317.47°)
OKLaboklab(38.26% 0.0998 -0.1094)
OKLCHoklch(38.26% 0.148 312.4)
XYZxyz(8.5703, 4.8202, 18.8875)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D217A #3E7A21
analogous
#30217A #5D217A #7A216A
triadic
#5D217A #7A5D21 #217A5D
tetradic
#5D217A #7A3021 #3E7A21 #216A7A
square
#5D217A #7A3021 #3E7A21 #216A7A
split-complementary
#5D217A #6A7A21 #217A30
monochromatic
#14071A #38144A #5D217A #822EAA #A248CD

Accessibility & contrast

On white

10.69
#5D217A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5D217A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D217A
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D217A#FFFFFF#000000##FFFFFF
##5D217A1.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7D
Deuteranopia (green-blind)
#183F78
Tritanopia (blue-blind)
#5A344B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5d217a;
/* rgb */ color: rgb(93, 33, 122);
/* oklch */ color: oklch(38.3% 0.148 312.4);
Tailwind
colors: {
  custom: {
    50: '#8e62a1',
    500: '#5d217a',
    950: '#000000',
  },
}
SCSS
$custom: #5d217a;
$custom-light: #8e62a1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d217a",
  "rgb": {
    "r": 93,
    "g": 33,
    "b": 122
  },
  "hsl": {
    "h": 280.449,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.38257,
    "c": 0.14811,
    "h": 312.4
  },
  "luminance": 0.0482
}

Semantic roles & 50–950 ramp

primary
#5D217A
secondary
#6AAD4A
accent
#E14779
background
#F9F6FA
surface
#F1EBF3
border
#CBC6CD
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5D217A

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

Preview Lab → · Contrast checker → · Palette generator →

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