#5B154B#5B154B

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

Color values

HEX#5B154B
RGBrgb(91, 21, 75)
HSLhsl(314, 63%, 22%)
HSVhsv(314, 77%, 36%)
CMYKcmyk(0%, 76.9%, 17.6%, 64.3%)
CIE-LABlab(21.09, 37.57, -16.09)
CIE-LCHlch(21.09, 40.87, 336.82°)
OKLaboklab(33.56% 0.1114 -0.0436)
OKLCHoklch(33.56% 0.12 338.6)
XYZxyz(5.8527, 3.2690, 6.9780)
Luminance0.0327 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B154B #155B25
analogous
#48155B #5B154B #5B1528
triadic
#5B154B #4B5B15 #154B5B
tetradic
#5B154B #5B4815 #155B25 #15285B
square
#5B154B #5B4815 #155B25 #15285B
split-complementary
#5B154B #285B15 #155B48
monochromatic
#190614 #290A22 #5B154B #8D2074 #BE2C9D

Accessibility & contrast

On white

12.70
#5B154B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#5B154B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B154B
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B154B#FFFFFF#000000##FFFFFF
##5B154B1.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182C4D
Deuteranopia (green-blind)
#2F3749
Tritanopia (blue-blind)
#60182E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5b154b;
/* rgb */ color: rgb(91, 21, 75);
/* oklch */ color: oklch(33.6% 0.120 338.6);
Tailwind
colors: {
  custom: {
    50: '#8c5a7d',
    500: '#5b154b',
    950: '#000000',
  },
}
SCSS
$custom: #5b154b;
$custom-light: #8c5a7d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b154b",
  "rgb": {
    "r": 91,
    "g": 21,
    "b": 75
  },
  "hsl": {
    "h": 313.714,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.33555,
    "c": 0.11957,
    "h": 338.6
  },
  "luminance": 0.03268
}

Semantic roles & 50–950 ramp

primary
#5B154B
secondary
#39924E
accent
#E66842
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C0409
muted
#7D797B

Preview Lab

Preview with #5B154B

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

Preview Lab → · Contrast checker → · Palette generator →

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