#5A134C#5A134C

#5A134C is a dark, vivid pink. Relative luminance 0.032; OKLCH L 33.2% C 0.122 H 337.2°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#5A134C
RGBrgb(90, 19, 76)
HSLhsl(312, 65%, 21%)
HSVhsv(312, 79%, 35%)
CMYKcmyk(0%, 78.9%, 15.6%, 64.7%)
CIE-LABlab(20.68, 38.22, -17.42)
CIE-LCHlch(20.68, 42.01, 335.50°)
OKLaboklab(33.24% 0.1127 -0.0474)
OKLCHoklch(33.24% 0.122 337.2)
XYZxyz(5.7539, 3.1617, 7.1433)
Luminance0.0316 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A134C #135A21
analogous
#45135A #5A134C #5A1329
triadic
#5A134C #4C5A13 #134C5A
tetradic
#5A134C #5A4513 #135A21 #13295A
square
#5A134C #5A4513 #135A21 #13295A
split-complementary
#5A134C #295A13 #135A45
monochromatic
#190515 #270821 #5A134C #8D1E77 #BF28A1

Accessibility & contrast

On white

12.87
#5A134C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#5A134C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A134C
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A134C#FFFFFF#000000##FFFFFF
##5A134C1.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152B4E
Deuteranopia (green-blind)
#2D364A
Tritanopia (blue-blind)
#5F172E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5a134c;
/* rgb */ color: rgb(90, 19, 76);
/* oklch */ color: oklch(33.2% 0.122 337.2);
Tailwind
colors: {
  custom: {
    50: '#8b597e',
    500: '#5a134c',
    950: '#000000',
  },
}
SCSS
$custom: #5a134c;
$custom-light: #8b597e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a134c",
  "rgb": {
    "r": 90,
    "g": 19,
    "b": 76
  },
  "hsl": {
    "h": 311.831,
    "s": 65.138,
    "l": 21.373
  },
  "oklch": {
    "l": 0.33238,
    "c": 0.12222,
    "h": 337.2
  },
  "luminance": 0.03161
}

Semantic roles & 50–950 ramp

primary
#5A134C
secondary
#379249
accent
#E86140
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A134C

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

Preview Lab → · Contrast checker → · Palette generator →

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