#5D2152#5D2152

#5D2152 is a dark, moderate pink. Relative luminance 0.040; OKLCH L 35.7% C 0.109 H 335.4°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#5D2152
RGBrgb(93, 33, 82)
HSLhsl(311, 48%, 25%)
HSVhsv(311, 65%, 36%)
CMYKcmyk(0%, 64.5%, 11.8%, 63.5%)
CIE-LABlab(23.75, 33.97, -16.64)
CIE-LCHlch(23.75, 37.83, 333.90°)
OKLaboklab(35.68% 0.0988 -0.0452)
OKLCHoklch(35.68% 0.109 335.4)
XYZxyz(6.5811, 4.0246, 8.4112)
Luminance0.0402 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2152 #215D2C
analogous
#4A215D #5D2152 #5D2134
triadic
#5D2152 #525D21 #21525D
tetradic
#5D2152 #5D4A21 #215D2C #21345D
square
#5D2152 #5D4A21 #215D2C #21345D
split-complementary
#5D2152 #345D21 #215D4A
monochromatic
#170814 #30112A #5D2152 #8A317A #B741A2

Accessibility & contrast

On white

11.64
#5D2152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#5D2152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2152
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2152#FFFFFF#000000##FFFFFF
##5D21521.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#213354
Deuteranopia (green-blind)
#343C50
Tritanopia (blue-blind)
#622436
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5d2152;
/* rgb */ color: rgb(93, 33, 82);
/* oklch */ color: oklch(35.7% 0.109 335.4);
Tailwind
colors: {
  custom: {
    50: '#8d6082',
    500: '#5d2152',
    950: '#000000',
  },
}
SCSS
$custom: #5d2152;
$custom-light: #8d6082;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2152",
  "rgb": {
    "r": 93,
    "g": 33,
    "b": 82
  },
  "hsl": {
    "h": 311,
    "s": 47.619,
    "l": 24.706
  },
  "oklch": {
    "l": 0.35682,
    "c": 0.10869,
    "h": 335.4
  },
  "luminance": 0.04024
}

Semantic roles & 50–950 ramp

primary
#5D2152
secondary
#499156
accent
#D76951
background
#F8F5F8
surface
#F0EAEF
border
#CBC6CA
text
#0C050A
muted
#7D797C

Preview Lab

Preview with #5D2152

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

Preview Lab → · Contrast checker → · Palette generator →

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