#5D1168#5D1168

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

Color values

HEX#5D1168
RGBrgb(93, 17, 104)
HSLhsl(292, 72%, 24%)
HSVhsv(292, 84%, 41%)
CMYKcmyk(10.6%, 83.7%, 0%, 59.2%)
CIE-LABlab(22.75, 44.66, -32.75)
CIE-LCHlch(22.75, 55.38, 323.74°)
OKLaboklab(35.39% 0.1181 -0.0917)
OKLCHoklch(35.39% 0.15 322.2)
XYZxyz(7.2131, 3.7280, 13.4337)
Luminance0.0373 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1168 #1C6811
analogous
#311168 #5D1168 #681147
triadic
#5D1168 #685D11 #11685D
tetradic
#5D1168 #683111 #1C6811 #114768
square
#5D1168 #683111 #1C6811 #114768
split-complementary
#5D1168 #476811 #116831
monochromatic
#18041A #2E0833 #5D1168 #8C1A9D #BB22D1

Accessibility & contrast

On white

12.03
#5D1168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#5D1168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1168
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1168#FFFFFF#000000##FFFFFF
##5D11681.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316A
Deuteranopia (green-blind)
#1F3966
Tritanopia (blue-blind)
#5E233D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5d1168;
/* rgb */ color: rgb(93, 17, 104);
/* oklch */ color: oklch(35.4% 0.149 322.2);
Tailwind
colors: {
  custom: {
    50: '#8e5a94',
    500: '#5d1168',
    950: '#000000',
  },
}
SCSS
$custom: #5d1168;
$custom-light: #8e5a94;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1168",
  "rgb": {
    "r": 93,
    "g": 17,
    "b": 104
  },
  "hsl": {
    "h": 292.414,
    "s": 71.901,
    "l": 23.725
  },
  "oklch": {
    "l": 0.35387,
    "c": 0.1495,
    "h": 322.2
  },
  "luminance": 0.03728
}

Semantic roles & 50–950 ramp

primary
#5D1168
secondary
#42A035
accent
#EF3950
background
#F9F5F9
surface
#F1E9F1
border
#CBC5CB
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5D1168

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

Preview Lab → · Contrast checker → · Palette generator →

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