#5A1340#5A1340

#5A1340 is a dark, moderate pink. Relative luminance 0.030; OKLCH L 32.6% C 0.114 H 346.4°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#5A1340
RGBrgb(90, 19, 64)
HSLhsl(322, 65%, 21%)
HSVhsv(322, 79%, 35%)
CMYKcmyk(0%, 78.9%, 28.9%, 64.7%)
CIE-LABlab(20.08, 36.38, -10.10)
CIE-LCHlch(20.08, 37.76, 344.48°)
OKLaboklab(32.61% 0.1105 -0.0267)
OKLCHoklch(32.61% 0.114 346.4)
XYZxyz(5.3750, 3.0102, 5.1474)
Luminance0.0301 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1340 #135A2D
analogous
#51135A #5A1340 #5A131D
triadic
#5A1340 #405A13 #13405A
tetradic
#5A1340 #5A5113 #135A2D #131D5A
square
#5A1340 #5A5113 #135A2D #131D5A
split-complementary
#5A1340 #1D5A13 #135A51
monochromatic
#190512 #27081C #5A1340 #8D1E64 #BF2888

Accessibility & contrast

On white

13.11
#5A1340 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1340
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1340#FFFFFF#000000##FFFFFF
##5A13401.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C2941
Deuteranopia (green-blind)
#32353E
Tritanopia (blue-blind)
#611127
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5a1340;
/* rgb */ color: rgb(90, 19, 64);
/* oklch */ color: oklch(32.6% 0.114 346.4);
Tailwind
colors: {
  custom: {
    50: '#8c5874',
    500: '#5a1340',
    950: '#000000',
  },
}
SCSS
$custom: #5a1340;
$custom-light: #8c5874;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1340",
  "rgb": {
    "r": 90,
    "g": 19,
    "b": 64
  },
  "hsl": {
    "h": 321.972,
    "s": 65.138,
    "l": 21.373
  },
  "oklch": {
    "l": 0.32612,
    "c": 0.11364,
    "h": 346.4
  },
  "luminance": 0.0301
}

Semantic roles & 50–950 ramp

primary
#5A1340
secondary
#379258
accent
#E87D40
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0408
muted
#7D797B

Preview Lab

Preview with #5A1340

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

Preview Lab → · Contrast checker → · Palette generator →

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