#5D1C94#5D1C94

#5D1C94 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.9% C 0.180 H 303.3°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#5D1C94
RGBrgb(93, 28, 148)
HSLhsl(273, 68%, 35%)
HSVhsv(273, 81%, 58%)
CMYKcmyk(37.2%, 81.1%, 0%, 42%)
CIE-LABlab(27.56, 50.41, -52.82)
CIE-LCHlch(27.56, 73.01, 313.66°)
OKLaboklab(39.86% 0.0991 -0.1507)
OKLCHoklch(39.86% 0.18 303.3)
XYZxyz(10.2735, 5.2958, 28.4922)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1C94 #53941C
analogous
#211C94 #5D1C94 #941C8F
triadic
#5D1C94 #945D1C #1C945D
tetradic
#5D1C94 #94211C #53941C #1C8F94
square
#5D1C94 #94211C #53941C #1C8F94
split-complementary
#5D1C94 #8F941C #1C9421
monochromatic
#1C092D #3D1261 #5D1C94 #7D26C7 #9B4DDD

Accessibility & contrast

On white

10.20
#5D1C94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#5D1C94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1C94
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1C94#FFFFFF#000000##FFFFFF
##5D1C941.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004097
Deuteranopia (green-blind)
#004192
Tritanopia (blue-blind)
#523D58
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5d1c94;
/* rgb */ color: rgb(93, 28, 148);
/* oklch */ color: oklch(39.9% 0.180 303.3);
Tailwind
colors: {
  custom: {
    50: '#9161b4',
    500: '#5d1c94',
    950: '#000000',
  },
}
SCSS
$custom: #5d1c94;
$custom-light: #9161b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1c94",
  "rgb": {
    "r": 93,
    "g": 28,
    "b": 148
  },
  "hsl": {
    "h": 272.5,
    "s": 68.182,
    "l": 34.51
  },
  "oklch": {
    "l": 0.39855,
    "c": 0.18039,
    "h": 303.3
  },
  "luminance": 0.05296
}

Semantic roles & 50–950 ramp

primary
#5D1C94
secondary
#81C04C
accent
#EB3D8D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5D1C94

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

Preview Lab → · Contrast checker → · Palette generator →

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