#5A1540#5A1540

#5A1540 is a dark, moderate pink. Relative luminance 0.031; OKLCH L 32.8% C 0.111 H 346.7°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#5A1540
RGBrgb(90, 21, 64)
HSLhsl(323, 62%, 22%)
HSVhsv(323, 77%, 35%)
CMYKcmyk(0%, 76.7%, 28.9%, 64.7%)
CIE-LABlab(20.36, 35.60, -9.68)
CIE-LCHlch(20.36, 36.89, 344.79°)
OKLaboklab(32.82% 0.108 -0.0256)
OKLCHoklch(32.82% 0.111 346.7)
XYZxyz(5.4103, 3.0807, 5.1592)
Luminance0.0308 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1540 #155A2F
analogous
#52155A #5A1540 #5A151E
triadic
#5A1540 #405A15 #15405A
tetradic
#5A1540 #5A5215 #155A2F #151E5A
square
#5A1540 #5A5215 #155A2F #151E5A
split-complementary
#5A1540 #1E5A15 #155A52
monochromatic
#190612 #28091D #5A1540 #8C2163 #BD2C87

Accessibility & contrast

On white

13.00
#5A1540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#5A1540 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1540
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1540#FFFFFF#000000##FFFFFF
##5A15401.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a1540;
/* rgb */ color: rgb(90, 21, 64);
/* oklch */ color: oklch(32.8% 0.111 346.7);
Tailwind
colors: {
  custom: {
    50: '#8c5974',
    500: '#5a1540',
    950: '#000000',
  },
}
SCSS
$custom: #5a1540;
$custom-light: #8c5974;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1540",
  "rgb": {
    "r": 90,
    "g": 21,
    "b": 64
  },
  "hsl": {
    "h": 322.609,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.32816,
    "c": 0.111,
    "h": 346.7
  },
  "luminance": 0.0308
}

Semantic roles & 50–950 ramp

primary
#5A1540
secondary
#39925B
accent
#E58043
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0408
muted
#7D797B

Preview Lab

Preview with #5A1540

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

Preview Lab → · Contrast checker → · Palette generator →

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