#5A1337#5A1337

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

Color values

HEX#5A1337
RGBrgb(90, 19, 55)
HSLhsl(330, 65%, 21%)
HSVhsv(330, 79%, 35%)
CMYKcmyk(0%, 78.9%, 38.9%, 64.7%)
CIE-LABlab(19.70, 35.17, -4.40)
CIE-LCHlch(19.70, 35.45, 352.87°)
OKLaboklab(32.21% 0.1079 -0.0112)
OKLCHoklch(32.21% 0.108 354.1)
XYZxyz(5.1392, 2.9159, 3.9059)
Luminance0.0291 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1337 #135A36
analogous
#5A135A #5A1337 #5A1314
triadic
#5A1337 #375A13 #13375A
tetradic
#5A1337 #5A5A13 #135A36 #13145A
square
#5A1337 #5A5A13 #135A36 #13145A
split-complementary
#5A1337 #145A13 #135A5A
monochromatic
#19050F #270818 #5A1337 #8D1E56 #BF2875

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A1337#FFFFFF#000000##FFFFFF
##5A13371.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)
#202738
Deuteranopia (green-blind)
#343435
Tritanopia (blue-blind)
#620C23
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5a1337;
/* rgb */ color: rgb(90, 19, 55);
/* oklch */ color: oklch(32.2% 0.108 354.1);
Tailwind
colors: {
  custom: {
    50: '#8c586d',
    500: '#5a1337',
    950: '#000000',
  },
}
SCSS
$custom: #5a1337;
$custom-light: #8c586d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1337",
  "rgb": {
    "r": 90,
    "g": 19,
    "b": 55
  },
  "hsl": {
    "h": 329.577,
    "s": 65.138,
    "l": 21.373
  },
  "oklch": {
    "l": 0.32209,
    "c": 0.10844,
    "h": 354.1
  },
  "luminance": 0.02915
}

Semantic roles & 50–950 ramp

primary
#5A1337
secondary
#379264
accent
#E89340
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0D0407
muted
#7D797A

Preview Lab

Preview with #5A1337

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

Preview Lab → · Contrast checker → · Palette generator →

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