#5D1784#5D1784

#5D1784 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.1% C 0.169 H 309.4°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#5D1784
RGBrgb(93, 23, 132)
HSLhsl(279, 70%, 30%)
HSVhsv(279, 83%, 52%)
CMYKcmyk(29.5%, 82.6%, 0%, 48.2%)
CIE-LABlab(25.58, 48.54, -46.09)
CIE-LCHlch(25.58, 66.94, 316.48°)
OKLaboklab(38.05% 0.1076 -0.1309)
OKLCHoklch(38.05% 0.169 309.4)
XYZxyz(8.9846, 4.6061, 22.2411)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1784 #3E8417
analogous
#261784 #5D1784 #841774
triadic
#5D1784 #845D17 #17845D
tetradic
#5D1784 #842617 #3E8417 #177484
square
#5D1784 #842617 #3E8417 #177484
split-complementary
#5D1784 #748417 #178426
monochromatic
#14051C #380E50 #5D1784 #8220B8 #A239DC

Accessibility & contrast

On white

10.93
#5D1784 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D1784
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1784#FFFFFF#000000##FFFFFF
##5D17841.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A87
Deuteranopia (green-blind)
#003D82
Tritanopia (blue-blind)
#57334E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5d1784;
/* rgb */ color: rgb(93, 23, 132);
/* oklch */ color: oklch(38.1% 0.169 309.4);
Tailwind
colors: {
  custom: {
    50: '#905ea9',
    500: '#5d1784',
    950: '#000000',
  },
}
SCSS
$custom: #5d1784;
$custom-light: #905ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1784",
  "rgb": {
    "r": 93,
    "g": 23,
    "b": 132
  },
  "hsl": {
    "h": 278.532,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.38053,
    "c": 0.16944,
    "h": 309.4
  },
  "luminance": 0.04606
}

Semantic roles & 50–950 ramp

primary
#5D1784
secondary
#6AB83F
accent
#ED3B7B
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D1784

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

Preview Lab → · Contrast checker → · Palette generator →

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