#5D1CA1#5D1CA1

#5D1CA1 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 41.0% C 0.193 H 299.4°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#5D1CA1
RGBrgb(93, 28, 161)
HSLhsl(269, 70%, 37%)
HSVhsv(269, 83%, 63%)
CMYKcmyk(42.2%, 82.6%, 0%, 36.9%)
CIE-LABlab(28.72, 53.53, -58.87)
CIE-LCHlch(28.72, 79.57, 312.28°)
OKLaboklab(41.02% 0.0951 -0.1685)
OKLCHoklch(41.02% 0.193 299.4)
XYZxyz(11.3608, 5.7307, 34.2189)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1CA1 #60A11C
analogous
#1C1EA1 #5D1CA1 #9F1CA1
triadic
#5D1CA1 #A15D1C #1CA15D
tetradic
#5D1CA1 #A11C1E #60A11C #1CA19F
square
#5D1CA1 #A11C1E #60A11C #1CA19F
split-complementary
#5D1CA1 #A19F1C #1EA11C
monochromatic
#210A39 #3F136D #5D1CA1 #7B25D5 #9A56E2

Accessibility & contrast

On white

9.78
#5D1CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5D1CA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1CA1
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1CA1#FFFFFF#000000##FFFFFF
##5D1CA11.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A5
Deuteranopia (green-blind)
#00439F
Tritanopia (blue-blind)
#4C4260
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5d1ca1;
/* rgb */ color: rgb(93, 28, 161);
/* oklch */ color: oklch(41.0% 0.193 299.4);
Tailwind
colors: {
  custom: {
    50: '#9262be',
    500: '#5d1ca1',
    950: '#000000',
  },
}
SCSS
$custom: #5d1ca1;
$custom-light: #9262be;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1ca1",
  "rgb": {
    "r": 93,
    "g": 28,
    "b": 161
  },
  "hsl": {
    "h": 269.323,
    "s": 70.37,
    "l": 37.059
  },
  "oklch": {
    "l": 0.41018,
    "c": 0.19345,
    "h": 299.4
  },
  "luminance": 0.05731
}

Semantic roles & 50–950 ramp

primary
#5D1CA1
secondary
#8EC554
accent
#ED3B96
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5D1CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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