#5A1545#5A1545

#5A1545 is a dark, moderate pink. Relative luminance 0.031; OKLCH L 33.1% C 0.114 H 342.6°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#5A1545
RGBrgb(90, 21, 69)
HSLhsl(318, 62%, 22%)
HSVhsv(318, 77%, 35%)
CMYKcmyk(0%, 76.7%, 23.3%, 64.7%)
CIE-LABlab(20.60, 36.34, -12.77)
CIE-LCHlch(20.60, 38.52, 340.64°)
OKLaboklab(33.06% 0.1092 -0.0342)
OKLCHoklch(33.06% 0.114 342.6)
XYZxyz(5.5590, 3.1402, 5.9424)
Luminance0.0314 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1545 #155A2A
analogous
#4D155A #5A1545 #5A1523
triadic
#5A1545 #455A15 #15455A
tetradic
#5A1545 #5A4D15 #155A2A #15235A
square
#5A1545 #5A4D15 #155A2A #15235A
split-complementary
#5A1545 #235A15 #155A4D
monochromatic
#190613 #28091F #5A1545 #8C216B #BD2C91

Accessibility & contrast

On white

12.90
#5A1545 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#5A1545 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1545
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1545#FFFFFF#000000##FFFFFF
##5A15451.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2A46
Deuteranopia (green-blind)
#313643
Tritanopia (blue-blind)
#60152B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5a1545;
/* rgb */ color: rgb(90, 21, 69);
/* oklch */ color: oklch(33.1% 0.114 342.6);
Tailwind
colors: {
  custom: {
    50: '#8b5a78',
    500: '#5a1545',
    950: '#000000',
  },
}
SCSS
$custom: #5a1545;
$custom-light: #8b5a78;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1545",
  "rgb": {
    "r": 90,
    "g": 21,
    "b": 69
  },
  "hsl": {
    "h": 318.261,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.33062,
    "c": 0.1144,
    "h": 342.6
  },
  "luminance": 0.0314
}

Semantic roles & 50–950 ramp

primary
#5A1545
secondary
#399254
accent
#E57443
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0409
muted
#7D797B

Preview Lab

Preview with #5A1545

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

Preview Lab → · Contrast checker → · Palette generator →

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