#5D1C82#5D1C82

#5D1C82 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.3% C 0.162 H 309.7°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#5D1C82
RGBrgb(93, 28, 130)
HSLhsl(278, 65%, 31%)
HSVhsv(278, 78%, 51%)
CMYKcmyk(28.5%, 78.5%, 0%, 49%)
CIE-LABlab(26.07, 46.21, -44.05)
CIE-LCHlch(26.07, 63.84, 316.37°)
OKLaboklab(38.34% 0.1037 -0.1249)
OKLCHoklch(38.34% 0.162 309.7)
XYZxyz(8.9579, 4.7696, 21.5635)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1C82 #41821C
analogous
#2A1C82 #5D1C82 #821C74
triadic
#5D1C82 #825D1C #1C825D
tetradic
#5D1C82 #822A1C #41821C #1C7482
square
#5D1C82 #822A1C #41821C #1C7482
split-complementary
#5D1C82 #74821C #1C822A
monochromatic
#15061D #391150 #5D1C82 #8127B4 #A142D6

Accessibility & contrast

On white

10.75
#5D1C82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D1C82
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1C82#FFFFFF#000000##FFFFFF
##5D1C821.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B85
Deuteranopia (green-blind)
#003F80
Tritanopia (blue-blind)
#58354E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5d1c82;
/* rgb */ color: rgb(93, 28, 130);
/* oklch */ color: oklch(38.3% 0.162 309.7);
Tailwind
colors: {
  custom: {
    50: '#8f60a7',
    500: '#5d1c82',
    950: '#000000',
  },
}
SCSS
$custom: #5d1c82;
$custom-light: #8f60a7;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1c82",
  "rgb": {
    "r": 93,
    "g": 28,
    "b": 130
  },
  "hsl": {
    "h": 278.235,
    "s": 64.557,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38343,
    "c": 0.16235,
    "h": 309.7
  },
  "luminance": 0.04769
}

Semantic roles & 50–950 ramp

primary
#5D1C82
secondary
#6DB544
accent
#E8407D
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D1C82

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

Preview Lab → · Contrast checker → · Palette generator →

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