#5D1952#5D1952

#5D1952 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.7% C 0.121 H 335.0°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#5D1952
RGBrgb(93, 25, 82)
HSLhsl(310, 58%, 23%)
HSVhsv(310, 73%, 36%)
CMYKcmyk(0%, 73.1%, 11.8%, 63.5%)
CIE-LABlab(22.42, 37.67, -18.72)
CIE-LCHlch(22.42, 42.06, 333.57°)
OKLaboklab(34.71% 0.1097 -0.0511)
OKLCHoklch(34.71% 0.121 335)
XYZxyz(6.3849, 3.6322, 8.3458)
Luminance0.0363 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1952 #195D24
analogous
#46195D #5D1952 #5D1930
triadic
#5D1952 #525D19 #19525D
tetradic
#5D1952 #5D4619 #195D24 #19305D
square
#5D1952 #5D4619 #195D24 #19305D
split-complementary
#5D1952 #305D19 #195D46
monochromatic
#180615 #2D0C27 #5D1952 #8D267D #BD33A7

Accessibility & contrast

On white

12.16
#5D1952 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#5D1952 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1952
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1952#FFFFFF#000000##FFFFFF
##5D19521.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192F54
Deuteranopia (green-blind)
#303950
Tritanopia (blue-blind)
#621E33
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5d1952;
/* rgb */ color: rgb(93, 25, 82);
/* oklch */ color: oklch(34.7% 0.121 335.0);
Tailwind
colors: {
  custom: {
    50: '#8d5c83',
    500: '#5d1952',
    950: '#000000',
  },
}
SCSS
$custom: #5d1952;
$custom-light: #8d5c83;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1952",
  "rgb": {
    "r": 93,
    "g": 25,
    "b": 82
  },
  "hsl": {
    "h": 309.706,
    "s": 57.627,
    "l": 23.137
  },
  "oklch": {
    "l": 0.34708,
    "c": 0.12105,
    "h": 335
  },
  "luminance": 0.03632
}

Semantic roles & 50–950 ramp

primary
#5D1952
secondary
#3F934C
accent
#E16047
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0D040A
muted
#7D797C

Preview Lab

Preview with #5D1952

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

Preview Lab → · Contrast checker → · Palette generator →

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