#5D1C8B#5D1C8B

#5D1C8B is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.1% C 0.171 H 306.4°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#5D1C8B
RGBrgb(93, 28, 139)
HSLhsl(275, 66%, 33%)
HSVhsv(275, 80%, 55%)
CMYKcmyk(33.1%, 79.9%, 0%, 45.5%)
CIE-LABlab(26.80, 48.29, -48.49)
CIE-LCHlch(26.80, 68.44, 314.88°)
OKLaboklab(39.08% 0.1016 -0.138)
OKLCHoklch(39.08% 0.171 306.4)
XYZxyz(9.5886, 5.0218, 24.8853)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1C8B #4A8B1C
analogous
#251C8B #5D1C8B #8B1C81
triadic
#5D1C8B #8B5D1C #1C8B5D
tetradic
#5D1C8B #8B251C #4A8B1C #1C818B
square
#5D1C8B #8B251C #4A8B1C #1C818B
split-complementary
#5D1C8B #818B1C #1C8B25
monochromatic
#190725 #3B1258 #5D1C8B #7F26BE #9D47DA

Accessibility & contrast

On white

10.48
#5D1C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5D1C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1C8B
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1C8B#FFFFFF#000000##FFFFFF
##5D1C8B1.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#004089
Tritanopia (blue-blind)
#553953
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5d1c8b;
/* rgb */ color: rgb(93, 28, 139);
/* oklch */ color: oklch(39.1% 0.171 306.4);
Tailwind
colors: {
  custom: {
    50: '#9060ae',
    500: '#5d1c8b',
    950: '#000000',
  },
}
SCSS
$custom: #5d1c8b;
$custom-light: #9060ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1c8b",
  "rgb": {
    "r": 93,
    "g": 28,
    "b": 139
  },
  "hsl": {
    "h": 275.135,
    "s": 66.467,
    "l": 32.745
  },
  "oklch": {
    "l": 0.39083,
    "c": 0.17136,
    "h": 306.4
  },
  "luminance": 0.05022
}

Semantic roles & 50–950 ramp

primary
#5D1C8B
secondary
#77BC47
accent
#E93E85
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D1C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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