#5A1440#5A1440

#5A1440 is a dark, moderate pink. Relative luminance 0.030; OKLCH L 32.7% C 0.112 H 346.5°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#5A1440
RGBrgb(90, 20, 64)
HSLhsl(322, 64%, 22%)
HSVhsv(322, 78%, 35%)
CMYKcmyk(0%, 77.8%, 28.9%, 64.7%)
CIE-LABlab(20.22, 35.99, -9.89)
CIE-LCHlch(20.22, 37.33, 344.63°)
OKLaboklab(32.71% 0.1093 -0.0262)
OKLCHoklch(32.71% 0.112 346.5)
XYZxyz(5.3923, 3.0447, 5.1532)
Luminance0.0304 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1440 #145A2E
analogous
#51145A #5A1440 #5A141D
triadic
#5A1440 #405A14 #14405A
tetradic
#5A1440 #5A5114 #145A2E #141D5A
square
#5A1440 #5A5114 #145A2E #141D5A
split-complementary
#5A1440 #1D5A14 #145A51
monochromatic
#190612 #28091C #5A1440 #8C1F64 #BE2A87

Accessibility & contrast

On white

13.05
#5A1440 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#5A1440 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1440
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1440#FFFFFF#000000##FFFFFF
##5A14401.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D2941
Deuteranopia (green-blind)
#32353E
Tritanopia (blue-blind)
#611228
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5a1440;
/* rgb */ color: rgb(90, 20, 64);
/* oklch */ color: oklch(32.7% 0.112 346.5);
Tailwind
colors: {
  custom: {
    50: '#8c5974',
    500: '#5a1440',
    950: '#000000',
  },
}
SCSS
$custom: #5a1440;
$custom-light: #8c5974;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1440",
  "rgb": {
    "r": 90,
    "g": 20,
    "b": 64
  },
  "hsl": {
    "h": 322.286,
    "s": 63.636,
    "l": 21.569
  },
  "oklch": {
    "l": 0.32712,
    "c": 0.11234,
    "h": 346.5
  },
  "luminance": 0.03044
}

Semantic roles & 50–950 ramp

primary
#5A1440
secondary
#389259
accent
#E77F41
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0408
muted
#7D797B

Preview Lab

Preview with #5A1440

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

Preview Lab → · Contrast checker → · Palette generator →

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