#5A152C#5A152C

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

Color values

HEX#5A152C
RGBrgb(90, 21, 44)
HSLhsl(340, 62%, 22%)
HSVhsv(340, 77%, 35%)
CMYKcmyk(0%, 76.7%, 51.1%, 64.7%)
CIE-LABlab(19.61, 33.11, 3.21)
CIE-LCHlch(19.61, 33.26, 5.54°)
OKLaboklab(32.01% 0.1012 0.0086)
OKLCHoklch(32.01% 0.102 4.8)
XYZxyz(4.9396, 2.8925, 2.6806)
Luminance0.0289 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A152C #155A43
analogous
#5A154F #5A152C #5A2115
triadic
#5A152C #2C5A15 #152C5A
tetradic
#5A152C #4F5A15 #155A43 #21155A
square
#5A152C #4F5A15 #155A43 #21155A
split-complementary
#5A152C #155A21 #154F5A
monochromatic
#19060C #280914 #5A152C #8C2144 #BD2C5D

Accessibility & contrast

On white

13.30
#5A152C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A152C
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A152C#FFFFFF#000000##FFFFFF
##5A152C1.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25272D
Deuteranopia (green-blind)
#37342A
Tritanopia (blue-blind)
#62091E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #5a152c;
/* rgb */ color: rgb(90, 21, 44);
/* oklch */ color: oklch(32.0% 0.102 4.8);
Tailwind
colors: {
  custom: {
    50: '#8d5964',
    500: '#5a152c',
    950: '#000000',
  },
}
SCSS
$custom: #5a152c;
$custom-light: #8d5964;
$custom-dark: #000000;
JSON
{
  "hex": "#5a152c",
  "rgb": {
    "r": 90,
    "g": 21,
    "b": 44
  },
  "hsl": {
    "h": 340,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.32013,
    "c": 0.10153,
    "h": 4.8
  },
  "luminance": 0.02892
}

Semantic roles & 50–950 ramp

primary
#5A152C
secondary
#399274
accent
#E5AF43
background
#F9F5F6
surface
#F1E9EB
border
#CBC5C6
text
#0D0405
muted
#7E797A

Preview Lab

Preview with #5A152C

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

Preview Lab → · Contrast checker → · Palette generator →

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