#5D1C81#5D1C81

#5D1C81 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.161 H 310.1°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#5D1C81
RGBrgb(93, 28, 129)
HSLhsl(279, 64%, 31%)
HSVhsv(279, 78%, 51%)
CMYKcmyk(27.9%, 78.3%, 0%, 49.4%)
CIE-LABlab(25.99, 45.99, -43.55)
CIE-LCHlch(25.99, 63.33, 316.56°)
OKLaboklab(38.26% 0.1039 -0.1235)
OKLCHoklch(38.26% 0.161 310.1)
XYZxyz(8.8911, 4.7428, 21.2117)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1C81 #40811C
analogous
#2A1C81 #5D1C81 #811C72
triadic
#5D1C81 #815D1C #1C815D
tetradic
#5D1C81 #812A1C #40811C #1C7281
square
#5D1C81 #812A1C #40811C #1C7281
split-complementary
#5D1C81 #72811C #1C812A
monochromatic
#14061C #39114F #5D1C81 #8127B3 #A142D6

Accessibility & contrast

On white

10.78
#5D1C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5D1C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1C81
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1C81#FFFFFF#000000##FFFFFF
##5D1C811.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B84
Deuteranopia (green-blind)
#013E7F
Tritanopia (blue-blind)
#58344E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5d1c81;
/* rgb */ color: rgb(93, 28, 129);
/* oklch */ color: oklch(38.3% 0.161 310.1);
Tailwind
colors: {
  custom: {
    50: '#8f60a6',
    500: '#5d1c81',
    950: '#000000',
  },
}
SCSS
$custom: #5d1c81;
$custom-light: #8f60a6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1c81",
  "rgb": {
    "r": 93,
    "g": 28,
    "b": 129
  },
  "hsl": {
    "h": 278.614,
    "s": 64.331,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38263,
    "c": 0.16134,
    "h": 310.1
  },
  "luminance": 0.04743
}

Semantic roles & 50–950 ramp

primary
#5D1C81
secondary
#6CB444
accent
#E7407C
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D1C81

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

Preview Lab → · Contrast checker → · Palette generator →

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