#5D1152#5D1152

#5D1152 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.9% C 0.131 H 334.8°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#5D1152
RGBrgb(93, 17, 82)
HSLhsl(309, 69%, 22%)
HSVhsv(309, 82%, 36%)
CMYKcmyk(0%, 81.7%, 11.8%, 63.5%)
CIE-LABlab(21.35, 40.69, -20.40)
CIE-LCHlch(21.35, 45.52, 333.38°)
OKLaboklab(33.94% 0.1187 -0.0558)
OKLCHoklch(33.94% 0.131 334.8)
XYZxyz(6.2377, 3.3378, 8.2967)
Luminance0.0334 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1152 #115D1C
analogous
#42115D #5D1152 #5D112C
triadic
#5D1152 #525D11 #11525D
tetradic
#5D1152 #5D4211 #115D1C #112C5D
square
#5D1152 #5D4211 #115D1C #112C5D
split-complementary
#5D1152 #2C5D11 #115D42
monochromatic
#1A0517 #290824 #5D1152 #911A80 #C424AD

Accessibility & contrast

On white

12.59
#5D1152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#5D1152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1152
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1152#FFFFFF#000000##FFFFFF
##5D11521.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102C54
Deuteranopia (green-blind)
#2D3750
Tritanopia (blue-blind)
#621830
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5d1152;
/* rgb */ color: rgb(93, 17, 82);
/* oklch */ color: oklch(33.9% 0.131 334.8);
Tailwind
colors: {
  custom: {
    50: '#8e5983',
    500: '#5d1152',
    950: '#000000',
  },
}
SCSS
$custom: #5d1152;
$custom-light: #8e5983;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1152",
  "rgb": {
    "r": 93,
    "g": 17,
    "b": 82
  },
  "hsl": {
    "h": 308.684,
    "s": 69.091,
    "l": 21.569
  },
  "oklch": {
    "l": 0.33938,
    "c": 0.13115,
    "h": 334.8
  },
  "luminance": 0.03337
}

Semantic roles & 50–950 ramp

primary
#5D1152
secondary
#349642
accent
#EC553C
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040A
muted
#7E797C

Preview Lab

Preview with #5D1152

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

Preview Lab → · Contrast checker → · Palette generator →

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