#5A1139#5A1139

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

Color values

HEX#5A1139
RGBrgb(90, 17, 57)
HSLhsl(327, 68%, 21%)
HSVhsv(327, 81%, 35%)
CMYKcmyk(0%, 81.1%, 36.7%, 64.7%)
CIE-LABlab(19.52, 36.18, -6.08)
CIE-LCHlch(19.52, 36.69, 350.45°)
OKLaboklab(32.1% 0.1109 -0.0157)
OKLCHoklch(32.1% 0.112 351.9)
XYZxyz(5.1557, 2.8706, 4.1527)
Luminance0.0287 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1139 #115A32
analogous
#56115A #5A1139 #5A1115
triadic
#5A1139 #395A11 #11395A
tetradic
#5A1139 #5A5611 #115A32 #11155A
square
#5A1139 #5A5611 #115A32 #11155A
split-complementary
#5A1139 #155A11 #115A56
monochromatic
#1A0510 #270718 #5A1139 #8D1B5A #C1247A

Accessibility & contrast

On white

13.34
#5A1139 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#5A1139 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1139
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1139#FFFFFF#000000##FFFFFF
##5A11391.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E273A
Deuteranopia (green-blind)
#333437
Tritanopia (blue-blind)
#610B23
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #5a1139;
/* rgb */ color: rgb(90, 17, 57);
/* oklch */ color: oklch(32.1% 0.112 351.9);
Tailwind
colors: {
  custom: {
    50: '#8c576f',
    500: '#5a1139',
    950: '#000000',
  },
}
SCSS
$custom: #5a1139;
$custom-light: #8c576f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1139",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 57
  },
  "hsl": {
    "h": 327.123,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.32099,
    "c": 0.11197,
    "h": 351.9
  },
  "luminance": 0.0287
}

Semantic roles & 50–950 ramp

primary
#5A1139
secondary
#34935F
accent
#EB8C3D
background
#F8F5F6
surface
#F0E9EC
border
#CBC5C7
text
#0D0307
muted
#7D787A

Preview Lab

Preview with #5A1139

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

Preview Lab → · Contrast checker → · Palette generator →

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