#5D1C90#5D1C90

#5D1C90 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.5% C 0.176 H 304.6°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#5D1C90
RGBrgb(93, 28, 144)
HSLhsl(274, 67%, 34%)
HSVhsv(274, 81%, 56%)
CMYKcmyk(35.4%, 80.6%, 0%, 43.5%)
CIE-LABlab(27.22, 49.46, -50.91)
CIE-LCHlch(27.22, 70.98, 314.17°)
OKLaboklab(39.51% 0.1003 -0.1451)
OKLCHoklch(39.51% 0.176 304.6)
XYZxyz(9.9623, 5.1713, 26.8535)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1C90 #4F901C
analogous
#231C90 #5D1C90 #901C89
triadic
#5D1C90 #905D1C #1C905D
tetradic
#5D1C90 #90231C #4F901C #1C8990
square
#5D1C90 #90231C #4F901C #1C8990
split-complementary
#5D1C90 #89901C #1C9023
monochromatic
#1B082A #3C125D #5D1C90 #7E26C3 #9C4ADC

Accessibility & contrast

On white

10.32
#5D1C90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#5D1C90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1C90
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1C90#FFFFFF#000000##FFFFFF
##5D1C901.0010.322.0310.32
#FFFFFF10.321.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F93
Deuteranopia (green-blind)
#00408E
Tritanopia (blue-blind)
#533B56
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5d1c90;
/* rgb */ color: rgb(93, 28, 144);
/* oklch */ color: oklch(39.5% 0.176 304.6);
Tailwind
colors: {
  custom: {
    50: '#9061b1',
    500: '#5d1c90',
    950: '#000000',
  },
}
SCSS
$custom: #5d1c90;
$custom-light: #9061b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1c90",
  "rgb": {
    "r": 93,
    "g": 28,
    "b": 144
  },
  "hsl": {
    "h": 273.621,
    "s": 67.442,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39508,
    "c": 0.17637,
    "h": 304.6
  },
  "luminance": 0.05171
}

Semantic roles & 50–950 ramp

primary
#5D1C90
secondary
#7DBE4A
accent
#EA3D89
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5D1C90

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

Preview Lab → · Contrast checker → · Palette generator →

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