#5A152E#5A152E

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

Color values

HEX#5A152E
RGBrgb(90, 21, 46)
HSLhsl(338, 62%, 22%)
HSVhsv(338, 77%, 35%)
CMYKcmyk(0%, 76.7%, 48.9%, 64.7%)
CIE-LABlab(19.67, 33.32, 1.89)
CIE-LCHlch(19.67, 33.37, 3.24°)
OKLaboklab(32.08% 0.102 0.0052)
OKLCHoklch(32.08% 0.102 2.9)
XYZxyz(4.9781, 2.9079, 2.8834)
Luminance0.0291 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A152E #155A41
analogous
#5A1551 #5A152E #5A1F15
triadic
#5A152E #2E5A15 #152E5A
tetradic
#5A152E #515A15 #155A41 #1F155A
square
#5A152E #515A15 #155A41 #1F155A
split-complementary
#5A152E #155A1F #15515A
monochromatic
#19060D #280915 #5A152E #8C2147 #BD2C61

Accessibility & contrast

On white

13.28
#5A152E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A152E
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A152E#FFFFFF#000000##FFFFFF
##5A152E1.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24272F
Deuteranopia (green-blind)
#37352C
Tritanopia (blue-blind)
#620A1F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5a152e;
/* rgb */ color: rgb(90, 21, 46);
/* oklch */ color: oklch(32.1% 0.102 2.9);
Tailwind
colors: {
  custom: {
    50: '#8d5966',
    500: '#5a152e',
    950: '#000000',
  },
}
SCSS
$custom: #5a152e;
$custom-light: #8d5966;
$custom-dark: #000000;
JSON
{
  "hex": "#5a152e",
  "rgb": {
    "r": 90,
    "g": 21,
    "b": 46
  },
  "hsl": {
    "h": 338.261,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.3208,
    "c": 0.10212,
    "h": 2.9
  },
  "luminance": 0.02907
}

Semantic roles & 50–950 ramp

primary
#5A152E
secondary
#399272
accent
#E5AA43
background
#F9F5F6
surface
#F1E9EB
border
#CBC5C6
text
#0D0405
muted
#7E797A

Preview Lab

Preview with #5A152E

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

Preview Lab → · Contrast checker → · Palette generator →

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