#5D1167#5D1167

#5D1167 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.3% C 0.149 H 322.7°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#5D1167
RGBrgb(93, 17, 103)
HSLhsl(293, 72%, 24%)
HSVhsv(293, 83%, 40%)
CMYKcmyk(9.7%, 83.5%, 0%, 59.6%)
CIE-LABlab(22.68, 44.47, -32.21)
CIE-LCHlch(22.68, 54.91, 324.08°)
OKLaboklab(35.32% 0.1182 -0.0901)
OKLCHoklch(35.32% 0.149 322.7)
XYZxyz(7.1626, 3.7078, 13.1677)
Luminance0.0371 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1167 #1B6711
analogous
#321167 #5D1167 #671146
triadic
#5D1167 #675D11 #11675D
tetradic
#5D1167 #673211 #1B6711 #114667
square
#5D1167 #673211 #1B6711 #114667
split-complementary
#5D1167 #466711 #116732
monochromatic
#18041A #2E0832 #5D1167 #8C1A9C #BC22D0

Accessibility & contrast

On white

12.06
#5D1167 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#5D1167 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1167
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1167#FFFFFF#000000##FFFFFF
##5D11671.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003169
Deuteranopia (green-blind)
#203965
Tritanopia (blue-blind)
#5E233C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5d1167;
/* rgb */ color: rgb(93, 17, 103);
/* oklch */ color: oklch(35.3% 0.149 322.7);
Tailwind
colors: {
  custom: {
    50: '#8e5a93',
    500: '#5d1167',
    950: '#000000',
  },
}
SCSS
$custom: #5d1167;
$custom-light: #8e5a93;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1167",
  "rgb": {
    "r": 93,
    "g": 17,
    "b": 103
  },
  "hsl": {
    "h": 293.023,
    "s": 71.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.35315,
    "c": 0.14863,
    "h": 322.7
  },
  "luminance": 0.03707
}

Semantic roles & 50–950 ramp

primary
#5D1167
secondary
#419F35
accent
#EE394E
background
#F9F5F9
surface
#F1E9F1
border
#CBC5CB
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5D1167

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

Preview Lab → · Contrast checker → · Palette generator →

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