#5D1980#5D1980

#5D1980 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.164 H 310.8°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#5D1980
RGBrgb(93, 25, 128)
HSLhsl(280, 67%, 30%)
HSVhsv(280, 80%, 50%)
CMYKcmyk(27.3%, 80.5%, 0%, 49.8%)
CIE-LABlab(25.51, 46.92, -43.70)
CIE-LCHlch(25.51, 64.12, 317.04°)
OKLaboklab(37.9% 0.1069 -0.1239)
OKLCHoklch(37.9% 0.164 310.8)
XYZxyz(8.7574, 4.5811, 20.8408)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1980 #3C8019
analogous
#2A1980 #5D1980 #80196F
triadic
#5D1980 #805D19 #19805D
tetradic
#5D1980 #802A19 #3C8019 #196F80
square
#5D1980 #802A19 #3C8019 #196F80
split-complementary
#5D1980 #6F8019 #19802A
monochromatic
#13051A #380F4D #5D1980 #8223B3 #A33BD9

Accessibility & contrast

On white

10.96
#5D1980 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5D1980 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1980
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1980#FFFFFF#000000##FFFFFF
##5D19801.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d1980;
/* rgb */ color: rgb(93, 25, 128);
/* oklch */ color: oklch(37.9% 0.164 310.8);
Tailwind
colors: {
  custom: {
    50: '#8f5ea6',
    500: '#5d1980',
    950: '#000000',
  },
}
SCSS
$custom: #5d1980;
$custom-light: #8f5ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1980",
  "rgb": {
    "r": 93,
    "g": 25,
    "b": 128
  },
  "hsl": {
    "h": 279.612,
    "s": 67.32,
    "l": 30
  },
  "oklch": {
    "l": 0.37899,
    "c": 0.1636,
    "h": 310.8
  },
  "luminance": 0.04581
}

Semantic roles & 50–950 ramp

primary
#5D1980
secondary
#68B441
accent
#EA3E78
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D1980

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

Preview Lab → · Contrast checker → · Palette generator →

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