#5A152F#5A152F

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

Color values

HEX#5A152F
RGBrgb(90, 21, 47)
HSLhsl(337, 62%, 22%)
HSVhsv(337, 77%, 35%)
CMYKcmyk(0%, 76.7%, 47.8%, 64.7%)
CIE-LABlab(19.70, 33.43, 1.23)
CIE-LCHlch(19.70, 33.45, 2.11°)
OKLaboklab(32.11% 0.1024 0.0036)
OKLCHoklch(32.11% 0.102 2)
XYZxyz(4.9981, 2.9159, 2.9884)
Luminance0.0291 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A152F #155A40
analogous
#5A1552 #5A152F #5A1E15
triadic
#5A152F #2F5A15 #152F5A
tetradic
#5A152F #525A15 #155A40 #1E155A
square
#5A152F #525A15 #155A40 #1E155A
split-complementary
#5A152F #155A1E #15525A
monochromatic
#19060D #280915 #5A152F #8C2149 #BD2C63

Accessibility & contrast

On white

13.27
#5A152F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A152F
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A152F#FFFFFF#000000##FFFFFF
##5A152F1.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#242730
Deuteranopia (green-blind)
#36352D
Tritanopia (blue-blind)
#620A20
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5a152f;
/* rgb */ color: rgb(90, 21, 47);
/* oklch */ color: oklch(32.1% 0.102 2.0);
Tailwind
colors: {
  custom: {
    50: '#8d5967',
    500: '#5a152f',
    950: '#000000',
  },
}
SCSS
$custom: #5a152f;
$custom-light: #8d5967;
$custom-dark: #000000;
JSON
{
  "hex": "#5a152f",
  "rgb": {
    "r": 90,
    "g": 21,
    "b": 47
  },
  "hsl": {
    "h": 337.391,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.32114,
    "c": 0.10245,
    "h": 2
  },
  "luminance": 0.02915
}

Semantic roles & 50–950 ramp

primary
#5A152F
secondary
#399270
accent
#E5A843
background
#F9F5F6
surface
#F1E9EB
border
#CBC5C6
text
#0D0406
muted
#7E797A

Preview Lab

Preview with #5A152F

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

Preview Lab → · Contrast checker → · Palette generator →

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