#5A1140#5A1140

#5A1140 is a dark, moderate pink. Relative luminance 0.029; OKLCH L 32.4% C 0.116 H 346.1°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#5A1140
RGBrgb(90, 17, 64)
HSLhsl(321, 68%, 21%)
HSVhsv(321, 81%, 35%)
CMYKcmyk(0%, 81.1%, 28.9%, 64.7%)
CIE-LABlab(19.82, 37.12, -10.50)
CIE-LCHlch(19.82, 38.58, 344.20°)
OKLaboklab(32.42% 0.1127 -0.0278)
OKLCHoklch(32.42% 0.116 346.1)
XYZxyz(5.3426, 2.9453, 5.1366)
Luminance0.0295 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1140 #115A2B
analogous
#4F115A #5A1140 #5A111B
triadic
#5A1140 #405A11 #11405A
tetradic
#5A1140 #5A4F11 #115A2B #111B5A
square
#5A1140 #5A4F11 #115A2B #111B5A
split-complementary
#5A1140 #1B5A11 #115A4F
monochromatic
#1A0512 #27071B #5A1140 #8D1B65 #C12489

Accessibility & contrast

On white

13.22
#5A1140 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#5A1140 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1140
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1140#FFFFFF#000000##FFFFFF
##5A11401.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2841
Deuteranopia (green-blind)
#31343E
Tritanopia (blue-blind)
#610F27
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5a1140;
/* rgb */ color: rgb(90, 17, 64);
/* oklch */ color: oklch(32.4% 0.116 346.1);
Tailwind
colors: {
  custom: {
    50: '#8c5874',
    500: '#5a1140',
    950: '#000000',
  },
}
SCSS
$custom: #5a1140;
$custom-light: #8c5874;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1140",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 64
  },
  "hsl": {
    "h": 321.37,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.32422,
    "c": 0.11613,
    "h": 346.1
  },
  "luminance": 0.02945
}

Semantic roles & 50–950 ramp

primary
#5A1140
secondary
#349356
accent
#EB7B3D
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0408
muted
#7D797B

Preview Lab

Preview with #5A1140

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

Preview Lab → · Contrast checker → · Palette generator →

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