#5B154C#5B154C

#5B154C is a dark, vivid pink. Relative luminance 0.033; OKLCH L 33.6% C 0.120 H 337.9°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#5B154C
RGBrgb(91, 21, 76)
HSLhsl(313, 63%, 22%)
HSVhsv(313, 77%, 36%)
CMYKcmyk(0%, 76.9%, 16.5%, 64.3%)
CIE-LABlab(21.14, 37.73, -16.69)
CIE-LCHlch(21.14, 41.26, 336.14°)
OKLaboklab(33.61% 0.1115 -0.0453)
OKLCHoklch(33.61% 0.12 337.9)
XYZxyz(5.8872, 3.2828, 7.1597)
Luminance0.0328 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B154C #155B24
analogous
#47155B #5B154C #5B1529
triadic
#5B154C #4C5B15 #154C5B
tetradic
#5B154C #5B4715 #155B24 #15295B
square
#5B154C #5B4715 #155B24 #15295B
split-complementary
#5B154C #295B15 #155B47
monochromatic
#190615 #290A22 #5B154C #8D2076 #BE2C9F

Accessibility & contrast

On white

12.68
#5B154C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#5B154C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B154C
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B154C#FFFFFF#000000##FFFFFF
##5B154C1.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182C4E
Deuteranopia (green-blind)
#2F374A
Tritanopia (blue-blind)
#60192E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5b154c;
/* rgb */ color: rgb(91, 21, 76);
/* oklch */ color: oklch(33.6% 0.120 337.9);
Tailwind
colors: {
  custom: {
    50: '#8c5a7e',
    500: '#5b154c',
    950: '#000000',
  },
}
SCSS
$custom: #5b154c;
$custom-light: #8c5a7e;
$custom-dark: #000000;
JSON
{
  "hex": "#5b154c",
  "rgb": {
    "r": 91,
    "g": 21,
    "b": 76
  },
  "hsl": {
    "h": 312.857,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.33609,
    "c": 0.12034,
    "h": 337.9
  },
  "luminance": 0.03282
}

Semantic roles & 50–950 ramp

primary
#5B154C
secondary
#39924C
accent
#E66542
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B154C

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

Preview Lab → · Contrast checker → · Palette generator →

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