#5A152A#5A152A

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

Color values

HEX#5A152A
RGBrgb(90, 21, 42)
HSLhsl(342, 62%, 22%)
HSVhsv(342, 77%, 35%)
CMYKcmyk(0%, 76.7%, 53.3%, 64.7%)
CIE-LABlab(19.55, 32.90, 4.54)
CIE-LCHlch(19.55, 33.22, 7.86°)
OKLaboklab(31.95% 0.1003 0.0118)
OKLCHoklch(31.95% 0.101 6.7)
XYZxyz(4.9029, 2.8778, 2.4873)
Luminance0.0288 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A152A #155A45
analogous
#5A154D #5A152A #5A2315
triadic
#5A152A #2A5A15 #152A5A
tetradic
#5A152A #4D5A15 #155A45 #23155A
square
#5A152A #4D5A15 #155A45 #23155A
split-complementary
#5A152A #155A23 #154D5A
monochromatic
#19060C #280913 #5A152A #8C2141 #BD2C58

Accessibility & contrast

On white

13.33
#5A152A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A152A
13.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A152A#FFFFFF#000000##FFFFFF
##5A152A1.0013.331.5813.33
#FFFFFF13.331.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a152a;
/* rgb */ color: rgb(90, 21, 42);
/* oklch */ color: oklch(31.9% 0.101 6.7);
Tailwind
colors: {
  custom: {
    50: '#8d5963',
    500: '#5a152a',
    950: '#000000',
  },
}
SCSS
$custom: #5a152a;
$custom-light: #8d5963;
$custom-dark: #000000;
JSON
{
  "hex": "#5a152a",
  "rgb": {
    "r": 90,
    "g": 21,
    "b": 42
  },
  "hsl": {
    "h": 341.739,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.31948,
    "c": 0.10102,
    "h": 6.7
  },
  "luminance": 0.02877
}

Semantic roles & 50–950 ramp

primary
#5A152A
secondary
#399277
accent
#E5B443
background
#F9F5F5
surface
#F1E9EA
border
#CBC5C6
text
#0D0405
muted
#7E7979

Preview Lab

Preview with #5A152A

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

Preview Lab → · Contrast checker → · Palette generator →

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