#5D1160#5D1160

#5D1160 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.8% C 0.143 H 326.4°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#5D1160
RGBrgb(93, 17, 96)
HSLhsl(298, 70%, 22%)
HSVhsv(298, 82%, 38%)
CMYKcmyk(3.1%, 82.3%, 0%, 62.4%)
CIE-LABlab(22.21, 43.15, -28.37)
CIE-LCHlch(22.21, 51.64, 326.67°)
OKLaboklab(34.83% 0.1188 -0.0789)
OKLCHoklch(34.83% 0.143 326.4)
XYZxyz(6.8258, 3.5731, 11.3942)
Luminance0.0357 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1160 #146011
analogous
#361160 #5D1160 #60113B
triadic
#5D1160 #605D11 #11605D
tetradic
#5D1160 #603611 #146011 #113B60
square
#5D1160 #603611 #146011 #113B60
split-complementary
#5D1160 #3B6011 #116036
monochromatic
#19051A #2B082C #5D1160 #8F1A94 #C223C8

Accessibility & contrast

On white

12.25
#5D1160 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#5D1160 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1160
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1160#FFFFFF#000000##FFFFFF
##5D11601.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F62
Deuteranopia (green-blind)
#25385E
Tritanopia (blue-blind)
#601F38
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5d1160;
/* rgb */ color: rgb(93, 17, 96);
/* oklch */ color: oklch(34.8% 0.143 326.4);
Tailwind
colors: {
  custom: {
    50: '#8e5a8d',
    500: '#5d1160',
    950: '#000000',
  },
}
SCSS
$custom: #5d1160;
$custom-light: #8e5a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1160",
  "rgb": {
    "r": 93,
    "g": 17,
    "b": 96
  },
  "hsl": {
    "h": 297.722,
    "s": 69.912,
    "l": 22.157
  },
  "oklch": {
    "l": 0.34827,
    "c": 0.14261,
    "h": 326.4
  },
  "luminance": 0.03573
}

Semantic roles & 50–950 ramp

primary
#5D1160
secondary
#389934
accent
#ED3B42
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5D1160

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

Preview Lab → · Contrast checker → · Palette generator →

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