#5A152B#5A152B

#5A152B is a dark, moderate pink. Relative luminance 0.029; OKLCH L 32.0% C 0.101 H 5.8°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#5A152B
RGBrgb(90, 21, 43)
HSLhsl(341, 62%, 22%)
HSVhsv(341, 77%, 35%)
CMYKcmyk(0%, 76.7%, 52.2%, 64.7%)
CIE-LABlab(19.58, 33.00, 3.88)
CIE-LCHlch(19.58, 33.23, 6.70°)
OKLaboklab(31.98% 0.1008 0.0102)
OKLCHoklch(31.98% 0.101 5.8)
XYZxyz(4.9211, 2.8851, 2.5828)
Luminance0.0288 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A152B #155A44
analogous
#5A154E #5A152B #5A2215
triadic
#5A152B #2B5A15 #152B5A
tetradic
#5A152B #4E5A15 #155A44 #22155A
square
#5A152B #4E5A15 #155A44 #22155A
split-complementary
#5A152B #155A22 #154E5A
monochromatic
#19060C #280913 #5A152B #8C2143 #BD2C5A

Accessibility & contrast

On white

13.32
#5A152B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#5A152B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A152B
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A152B#FFFFFF#000000##FFFFFF
##5A152B1.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25272B
Deuteranopia (green-blind)
#373429
Tritanopia (blue-blind)
#63081E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #5a152b;
/* rgb */ color: rgb(90, 21, 43);
/* oklch */ color: oklch(32.0% 0.101 5.8);
Tailwind
colors: {
  custom: {
    50: '#8d5964',
    500: '#5a152b',
    950: '#000000',
  },
}
SCSS
$custom: #5a152b;
$custom-light: #8d5964;
$custom-dark: #000000;
JSON
{
  "hex": "#5a152b",
  "rgb": {
    "r": 90,
    "g": 21,
    "b": 43
  },
  "hsl": {
    "h": 340.87,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.3198,
    "c": 0.10127,
    "h": 5.8
  },
  "luminance": 0.02884
}

Semantic roles & 50–950 ramp

primary
#5A152B
secondary
#399275
accent
#E5B143
background
#F9F5F5
surface
#F1E9EA
border
#CBC5C6
text
#0D0405
muted
#7E7979

Preview Lab

Preview with #5A152B

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

Preview Lab → · Contrast checker → · Palette generator →

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