#5A1940#5A1940

#5A1940 is a dark, moderate pink. Relative luminance 0.032; OKLCH L 33.3% C 0.105 H 347.4°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#5A1940
RGBrgb(90, 25, 64)
HSLhsl(324, 57%, 23%)
HSVhsv(324, 72%, 35%)
CMYKcmyk(0%, 72.2%, 28.9%, 64.7%)
CIE-LABlab(20.98, 33.88, -8.74)
CIE-LCHlch(20.98, 34.99, 345.54°)
OKLaboklab(33.27% 0.1027 -0.023)
OKLCHoklch(33.27% 0.105 347.4)
XYZxyz(5.4897, 3.2397, 5.1857)
Luminance0.0324 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1940 #195A33
analogous
#54195A #5A1940 #5A191F
triadic
#5A1940 #405A19 #19405A
tetradic
#5A1940 #5A5419 #195A33 #191F5A
square
#5A1940 #5A5419 #195A33 #191F5A
split-complementary
#5A1940 #1F5A19 #195A54
monochromatic
#180711 #2A0C1E #5A1940 #8A2662 #BA3484

Accessibility & contrast

On white

12.74
#5A1940 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#5A1940 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1940
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1940#FFFFFF#000000##FFFFFF
##5A19401.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#212B41
Deuteranopia (green-blind)
#34373E
Tritanopia (blue-blind)
#61172A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5a1940;
/* rgb */ color: rgb(90, 25, 64);
/* oklch */ color: oklch(33.3% 0.105 347.4);
Tailwind
colors: {
  custom: {
    50: '#8b5b74',
    500: '#5a1940',
    950: '#000000',
  },
}
SCSS
$custom: #5a1940;
$custom-light: #8b5b74;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1940",
  "rgb": {
    "r": 90,
    "g": 25,
    "b": 64
  },
  "hsl": {
    "h": 324,
    "s": 56.522,
    "l": 22.549
  },
  "oklch": {
    "l": 0.33266,
    "c": 0.10526,
    "h": 347.4
  },
  "luminance": 0.03239
}

Semantic roles & 50–950 ramp

primary
#5A1940
secondary
#3E905F
accent
#E08548
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0408
muted
#7D797B

Preview Lab

Preview with #5A1940

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

Preview Lab → · Contrast checker → · Palette generator →

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