#5D1A7E#5D1A7E

#5D1A7E is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.8% C 0.161 H 311.5°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#5D1A7E
RGBrgb(93, 26, 126)
HSLhsl(280, 66%, 30%)
HSVhsv(280, 79%, 49%)
CMYKcmyk(26.2%, 79.4%, 0%, 50.6%)
CIE-LABlab(25.48, 46.10, -42.48)
CIE-LCHlch(25.48, 62.68, 317.34°)
OKLaboklab(37.83% 0.1064 -0.1203)
OKLCHoklch(37.83% 0.161 311.5)
XYZxyz(8.6488, 4.5725, 20.1616)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1A7E #3B7E1A
analogous
#2B1A7E #5D1A7E #7E1A6D
triadic
#5D1A7E #7E5D1A #1A7E5D
tetradic
#5D1A7E #7E2B1A #3B7E1A #1A6D7E
square
#5D1A7E #7E2B1A #3B7E1A #1A6D7E
split-complementary
#5D1A7E #6D7E1A #1A7E2B
monochromatic
#130519 #38104B #5D1A7E #8224B1 #A43CD7

Accessibility & contrast

On white

10.97
#5D1A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5D1A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1A7E
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1A7E#FFFFFF#000000##FFFFFF
##5D1A7E1.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#053E7C
Tritanopia (blue-blind)
#59324B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5d1a7e;
/* rgb */ color: rgb(93, 26, 126);
/* oklch */ color: oklch(37.8% 0.161 311.5);
Tailwind
colors: {
  custom: {
    50: '#8f5fa4',
    500: '#5d1a7e',
    950: '#000000',
  },
}
SCSS
$custom: #5d1a7e;
$custom-light: #8f5fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1a7e",
  "rgb": {
    "r": 93,
    "g": 26,
    "b": 126
  },
  "hsl": {
    "h": 280.2,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.37831,
    "c": 0.16058,
    "h": 311.5
  },
  "luminance": 0.04572
}

Semantic roles & 50–950 ramp

primary
#5D1A7E
secondary
#67B242
accent
#E93F77
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D1A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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