#5A1040#5A1040

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

Color values

HEX#5A1040
RGBrgb(90, 16, 64)
HSLhsl(321, 70%, 21%)
HSVhsv(321, 82%, 35%)
CMYKcmyk(0%, 82.2%, 28.9%, 64.7%)
CIE-LABlab(19.70, 37.47, -10.69)
CIE-LCHlch(19.70, 38.97, 344.08°)
OKLaboklab(32.33% 0.1138 -0.0284)
OKLCHoklch(32.33% 0.117 346)
XYZxyz(5.3274, 2.9150, 5.1316)
Luminance0.0291 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1040 #105A2A
analogous
#4F105A #5A1040 #5A101B
triadic
#5A1040 #405A10 #10405A
tetradic
#5A1040 #5A4F10 #105A2A #101B5A
square
#5A1040 #5A4F10 #105A2A #101B5A
split-complementary
#5A1040 #1B5A10 #105A4F
monochromatic
#1A0512 #26071B #5A1040 #8E1965 #C2228A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A1040#FFFFFF#000000##FFFFFF
##5A10401.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)
#1A2841
Deuteranopia (green-blind)
#31343E
Tritanopia (blue-blind)
#610E26
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5a1040;
/* rgb */ color: rgb(90, 16, 64);
/* oklch */ color: oklch(32.3% 0.117 346.0);
Tailwind
colors: {
  custom: {
    50: '#8c5774',
    500: '#5a1040',
    950: '#000000',
  },
}
SCSS
$custom: #5a1040;
$custom-light: #8c5774;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1040",
  "rgb": {
    "r": 90,
    "g": 16,
    "b": 64
  },
  "hsl": {
    "h": 321.081,
    "s": 69.811,
    "l": 20.784
  },
  "oklch": {
    "l": 0.32332,
    "c": 0.11731,
    "h": 346
  },
  "luminance": 0.02914
}

Semantic roles & 50–950 ramp

primary
#5A1040
secondary
#339355
accent
#ED7A3B
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0308
muted
#7D787B

Preview Lab

Preview with #5A1040

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

Preview Lab → · Contrast checker → · Palette generator →

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