#5D1880#5D1880

#5D1880 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.8% C 0.165 H 310.9°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#5D1880
RGBrgb(93, 24, 128)
HSLhsl(280, 68%, 30%)
HSVhsv(280, 81%, 50%)
CMYKcmyk(27.3%, 81.3%, 0%, 49.8%)
CIE-LABlab(25.38, 47.29, -43.90)
CIE-LCHlch(25.38, 64.53, 317.13°)
OKLaboklab(37.81% 0.1077 -0.1245)
OKLCHoklch(37.81% 0.165 310.9)
XYZxyz(8.7364, 4.5392, 20.8338)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1880 #3B8018
analogous
#291880 #5D1880 #80186F
triadic
#5D1880 #805D18 #18805D
tetradic
#5D1880 #802918 #3B8018 #186F80
square
#5D1880 #802918 #3B8018 #186F80
split-complementary
#5D1880 #6F8018 #188029
monochromatic
#13051A #380E4C #5D1880 #8222B4 #A439DA

Accessibility & contrast

On white

11.01
#5D1880 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D1880
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1880#FFFFFF#000000##FFFFFF
##5D18801.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d1880;
/* rgb */ color: rgb(93, 24, 128);
/* oklch */ color: oklch(37.8% 0.165 310.9);
Tailwind
colors: {
  custom: {
    50: '#8f5ea6',
    500: '#5d1880',
    950: '#000000',
  },
}
SCSS
$custom: #5d1880;
$custom-light: #8f5ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1880",
  "rgb": {
    "r": 93,
    "g": 24,
    "b": 128
  },
  "hsl": {
    "h": 279.808,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.37809,
    "c": 0.16462,
    "h": 310.9
  },
  "luminance": 0.04539
}

Semantic roles & 50–950 ramp

primary
#5D1880
secondary
#67B440
accent
#EB3D77
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D1880

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

Preview Lab → · Contrast checker → · Palette generator →

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