#5A1240#5A1240

#5A1240 is a dark, moderate pink. Relative luminance 0.030; OKLCH L 32.5% C 0.115 H 346.3°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#5A1240
RGBrgb(90, 18, 64)
HSLhsl(322, 67%, 21%)
HSVhsv(322, 80%, 35%)
CMYKcmyk(0%, 80%, 28.9%, 64.7%)
CIE-LABlab(19.95, 36.76, -10.31)
CIE-LCHlch(19.95, 38.17, 344.34°)
OKLaboklab(32.52% 0.1116 -0.0273)
OKLCHoklch(32.52% 0.115 346.3)
XYZxyz(5.3584, 2.9770, 5.1419)
Luminance0.0298 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1240 #125A2C
analogous
#50125A #5A1240 #5A121C
triadic
#5A1240 #405A12 #12405A
tetradic
#5A1240 #5A5012 #125A2C #121C5A
square
#5A1240 #5A5012 #125A2C #121C5A
split-complementary
#5A1240 #1C5A12 #125A50
monochromatic
#1A0512 #27081C #5A1240 #8D1C64 #C02689

Accessibility & contrast

On white

13.16
#5A1240 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#5A1240 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1240
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1240#FFFFFF#000000##FFFFFF
##5A12401.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C2841
Deuteranopia (green-blind)
#31353E
Tritanopia (blue-blind)
#611027
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5a1240;
/* rgb */ color: rgb(90, 18, 64);
/* oklch */ color: oklch(32.5% 0.115 346.3);
Tailwind
colors: {
  custom: {
    50: '#8c5874',
    500: '#5a1240',
    950: '#000000',
  },
}
SCSS
$custom: #5a1240;
$custom-light: #8c5874;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1240",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 64
  },
  "hsl": {
    "h": 321.667,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32515,
    "c": 0.1149,
    "h": 346.3
  },
  "luminance": 0.02976
}

Semantic roles & 50–950 ramp

primary
#5A1240
secondary
#359357
accent
#EA7C3E
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0408
muted
#7D797B

Preview Lab

Preview with #5A1240

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

Preview Lab → · Contrast checker → · Palette generator →

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