#5D1C93#5D1C93

#5D1C93 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.8% C 0.179 H 303.7°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#5D1C93
RGBrgb(93, 28, 147)
HSLhsl(273, 68%, 34%)
HSVhsv(273, 81%, 58%)
CMYKcmyk(36.7%, 81%, 0%, 42.4%)
CIE-LABlab(27.47, 50.17, -52.34)
CIE-LCHlch(27.47, 72.51, 313.79°)
OKLaboklab(39.77% 0.0994 -0.1493)
OKLCHoklch(39.77% 0.179 303.7)
XYZxyz(10.1947, 5.2643, 28.0771)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1C93 #52931C
analogous
#221C93 #5D1C93 #931C8E
triadic
#5D1C93 #935D1C #1C935D
tetradic
#5D1C93 #93221C #52931C #1C8E93
square
#5D1C93 #93221C #52931C #1C8E93
split-complementary
#5D1C93 #8E931C #1C9322
monochromatic
#1C082C #3C1260 #5D1C93 #7E26C6 #9B4CDD

Accessibility & contrast

On white

10.23
#5D1C93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5D1C93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1C93
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1C93#FFFFFF#000000##FFFFFF
##5D1C931.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004096
Deuteranopia (green-blind)
#004191
Tritanopia (blue-blind)
#523C58
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5d1c93;
/* rgb */ color: rgb(93, 28, 147);
/* oklch */ color: oklch(39.8% 0.179 303.7);
Tailwind
colors: {
  custom: {
    50: '#9161b4',
    500: '#5d1c93',
    950: '#000000',
  },
}
SCSS
$custom: #5d1c93;
$custom-light: #9161b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1c93",
  "rgb": {
    "r": 93,
    "g": 28,
    "b": 147
  },
  "hsl": {
    "h": 272.773,
    "s": 68,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39767,
    "c": 0.17939,
    "h": 303.7
  },
  "luminance": 0.05264
}

Semantic roles & 50–950 ramp

primary
#5D1C93
secondary
#80BF4C
accent
#EB3D8C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5D1C93

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

Preview Lab → · Contrast checker → · Palette generator →

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