#5D154E#5D154E

#5D154E is a dark, vivid pink. Relative luminance 0.034; OKLCH L 34.1% C 0.123 H 337.7°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#5D154E
RGBrgb(93, 21, 78)
HSLhsl(313, 63%, 22%)
HSVhsv(313, 77%, 36%)
CMYKcmyk(0%, 77.4%, 16.1%, 63.5%)
CIE-LABlab(21.63, 38.61, -17.25)
CIE-LCHlch(21.63, 42.29, 335.92°)
OKLaboklab(34.07% 0.114 -0.0468)
OKLCHoklch(34.07% 0.123 337.7)
XYZxyz(6.1576, 3.4141, 7.5409)
Luminance0.0341 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D154E #155D24
analogous
#48155D #5D154E #5D152A
triadic
#5D154E #4E5D15 #154E5D
tetradic
#5D154E #5D4815 #155D24 #152A5D
square
#5D154E #5D4815 #155D24 #152A5D
split-complementary
#5D154E #2A5D15 #155D48
monochromatic
#190615 #2B0A24 #5D154E #8F2078 #C12CA2

Accessibility & contrast

On white

12.48
#5D154E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#5D154E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D154E
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D154E#FFFFFF#000000##FFFFFF
##5D154E1.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182D50
Deuteranopia (green-blind)
#30384C
Tritanopia (blue-blind)
#62192F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5d154e;
/* rgb */ color: rgb(93, 21, 78);
/* oklch */ color: oklch(34.1% 0.123 337.7);
Tailwind
colors: {
  custom: {
    50: '#8e5a7f',
    500: '#5d154e',
    950: '#000000',
  },
}
SCSS
$custom: #5d154e;
$custom-light: #8e5a7f;
$custom-dark: #000000;
JSON
{
  "hex": "#5d154e",
  "rgb": {
    "r": 93,
    "g": 21,
    "b": 78
  },
  "hsl": {
    "h": 312.5,
    "s": 63.158,
    "l": 22.353
  },
  "oklch": {
    "l": 0.3407,
    "c": 0.12325,
    "h": 337.7
  },
  "luminance": 0.03414
}

Semantic roles & 50–950 ramp

primary
#5D154E
secondary
#39944C
accent
#E66442
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0D040A
muted
#7D797C

Preview Lab

Preview with #5D154E

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

Preview Lab → · Contrast checker → · Palette generator →

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