#5D1C7F#5D1C7F

#5D1C7F is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.159 H 310.9°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#5D1C7F
RGBrgb(93, 28, 127)
HSLhsl(279, 64%, 30%)
HSVhsv(279, 78%, 50%)
CMYKcmyk(26.8%, 78%, 0%, 50.2%)
CIE-LABlab(25.83, 45.53, -42.54)
CIE-LCHlch(25.83, 62.31, 316.95°)
OKLaboklab(38.1% 0.1043 -0.1205)
OKLCHoklch(38.1% 0.159 310.9)
XYZxyz(8.7595, 4.6902, 20.5184)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1C7F #3E7F1C
analogous
#2B1C7F #5D1C7F #7F1C6F
triadic
#5D1C7F #7F5D1C #1C7F5D
tetradic
#5D1C7F #7F2B1C #3E7F1C #1C6F7F
square
#5D1C7F #7F2B1C #3E7F1C #1C6F7F
split-complementary
#5D1C7F #6F7F1C #1C7F2B
monochromatic
#14061B #38114D #5D1C7F #8227B1 #A240D5

Accessibility & contrast

On white

10.84
#5D1C7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5D1C7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1C7F
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1C7F#FFFFFF#000000##FFFFFF
##5D1C7F1.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#063E7D
Tritanopia (blue-blind)
#58334C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5d1c7f;
/* rgb */ color: rgb(93, 28, 127);
/* oklch */ color: oklch(38.1% 0.159 310.9);
Tailwind
colors: {
  custom: {
    50: '#8f60a5',
    500: '#5d1c7f',
    950: '#000000',
  },
}
SCSS
$custom: #5d1c7f;
$custom-light: #8f60a5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1c7f",
  "rgb": {
    "r": 93,
    "g": 28,
    "b": 127
  },
  "hsl": {
    "h": 279.394,
    "s": 63.871,
    "l": 30.392
  },
  "oklch": {
    "l": 0.38104,
    "c": 0.15935,
    "h": 310.9
  },
  "luminance": 0.0469
}

Semantic roles & 50–950 ramp

primary
#5D1C7F
secondary
#6AB344
accent
#E7417A
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D1C7F

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

Preview Lab → · Contrast checker → · Palette generator →

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