#5D1780#5D1780

#5D1780 is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.7% C 0.166 H 311.0°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#5D1780
RGBrgb(93, 23, 128)
HSLhsl(280, 70%, 30%)
HSVhsv(280, 82%, 50%)
CMYKcmyk(27.3%, 82%, 0%, 49.8%)
CIE-LABlab(25.26, 47.65, -44.10)
CIE-LCHlch(25.26, 64.93, 317.21°)
OKLaboklab(37.72% 0.1086 -0.1251)
OKLCHoklch(37.72% 0.166 311)
XYZxyz(8.7161, 4.4987, 20.8271)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1780 #3A8017
analogous
#291780 #5D1780 #80176F
triadic
#5D1780 #805D17 #17805D
tetradic
#5D1780 #802917 #3A8017 #176F80
square
#5D1780 #802917 #3A8017 #176F80
split-complementary
#5D1780 #6F8017 #178029
monochromatic
#13051A #370E4C #5D1780 #8320B4 #A436DB

Accessibility & contrast

On white

11.05
#5D1780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#5D1780 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1780
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1780#FFFFFF#000000##FFFFFF
##5D17801.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003983
Deuteranopia (green-blind)
#003D7E
Tritanopia (blue-blind)
#58314C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5d1780;
/* rgb */ color: rgb(93, 23, 128);
/* oklch */ color: oklch(37.7% 0.166 311.0);
Tailwind
colors: {
  custom: {
    50: '#8f5ea6',
    500: '#5d1780',
    950: '#000000',
  },
}
SCSS
$custom: #5d1780;
$custom-light: #8f5ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1780",
  "rgb": {
    "r": 93,
    "g": 23,
    "b": 128
  },
  "hsl": {
    "h": 280,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.37723,
    "c": 0.16562,
    "h": 311
  },
  "luminance": 0.04498
}

Semantic roles & 50–950 ramp

primary
#5D1780
secondary
#66B43E
accent
#EC3B76
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D1780

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

Preview Lab → · Contrast checker → · Palette generator →

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