#5C154E#5C154E

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

Color values

HEX#5C154E
RGBrgb(92, 21, 78)
HSLhsl(312, 63%, 22%)
HSVhsv(312, 77%, 36%)
CMYKcmyk(0%, 77.2%, 15.2%, 63.9%)
CIE-LABlab(21.44, 38.34, -17.56)
CIE-LCHlch(21.44, 42.17, 335.38°)
OKLaboklab(33.89% 0.1129 -0.0477)
OKLCHoklch(33.89% 0.123 337.1)
XYZxyz(6.0571, 3.3623, 7.5362)
Luminance0.0336 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C154E #155C23
analogous
#47155C #5C154E #5C152B
triadic
#5C154E #4E5C15 #154E5C
tetradic
#5C154E #5C4715 #155C23 #152B5C
square
#5C154E #5C4715 #155C23 #152B5C
split-complementary
#5C154E #2B5C15 #155C47
monochromatic
#190615 #2A0A24 #5C154E #8E2078 #C02CA2

Accessibility & contrast

On white

12.56
#5C154E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C154E
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C154E#FFFFFF#000000##FFFFFF
##5C154E1.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172C50
Deuteranopia (green-blind)
#2F374C
Tritanopia (blue-blind)
#61192F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5c154e;
/* rgb */ color: rgb(92, 21, 78);
/* oklch */ color: oklch(33.9% 0.123 337.1);
Tailwind
colors: {
  custom: {
    50: '#8d5a7f',
    500: '#5c154e',
    950: '#000000',
  },
}
SCSS
$custom: #5c154e;
$custom-light: #8d5a7f;
$custom-dark: #000000;
JSON
{
  "hex": "#5c154e",
  "rgb": {
    "r": 92,
    "g": 21,
    "b": 78
  },
  "hsl": {
    "h": 311.831,
    "s": 62.832,
    "l": 22.157
  },
  "oklch": {
    "l": 0.33895,
    "c": 0.12257,
    "h": 337.1
  },
  "luminance": 0.03362
}

Semantic roles & 50–950 ramp

primary
#5C154E
secondary
#39934B
accent
#E66242
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5C154E

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

Preview Lab → · Contrast checker → · Palette generator →

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