#5A1328#5A1328

#5A1328 is a dark, moderate pink. Relative luminance 0.028; OKLCH L 31.7% C 0.103 H 7.9°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#5A1328
RGBrgb(90, 19, 40)
HSLhsl(342, 65%, 21%)
HSVhsv(342, 79%, 35%)
CMYKcmyk(0%, 78.9%, 55.6%, 64.7%)
CIE-LABlab(19.20, 33.53, 5.46)
CIE-LCHlch(19.20, 33.97, 9.26°)
OKLaboklab(31.67% 0.1021 0.0141)
OKLCHoklch(31.67% 0.103 7.9)
XYZxyz(4.8328, 2.7933, 2.2917)
Luminance0.0279 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1328 #135A45
analogous
#5A134C #5A1328 #5A2213
triadic
#5A1328 #285A13 #13285A
tetradic
#5A1328 #4C5A13 #135A45 #22135A
square
#5A1328 #4C5A13 #135A45 #22135A
split-complementary
#5A1328 #135A22 #134C5A
monochromatic
#19050B #270812 #5A1328 #8D1E3E #BF2855

Accessibility & contrast

On white

13.47
#5A1328 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#5A1328 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1328
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1328#FFFFFF#000000##FFFFFF
##5A13281.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#252528
Deuteranopia (green-blind)
#373426
Tritanopia (blue-blind)
#63041C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #5a1328;
/* rgb */ color: rgb(90, 19, 40);
/* oklch */ color: oklch(31.7% 0.103 7.9);
Tailwind
colors: {
  custom: {
    50: '#8d5861',
    500: '#5a1328',
    950: '#000000',
  },
}
SCSS
$custom: #5a1328;
$custom-light: #8d5861;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1328",
  "rgb": {
    "r": 90,
    "g": 19,
    "b": 40
  },
  "hsl": {
    "h": 342.254,
    "s": 65.138,
    "l": 21.373
  },
  "oklch": {
    "l": 0.31669,
    "c": 0.10306,
    "h": 7.9
  },
  "luminance": 0.02793
}

Semantic roles & 50–950 ramp

primary
#5A1328
secondary
#379277
accent
#E8B640
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0305
muted
#7E7879

Preview Lab

Preview with #5A1328

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

Preview Lab → · Contrast checker → · Palette generator →

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