#5A134D#5A134D

#5A134D is a dark, vivid pink. Relative luminance 0.032; OKLCH L 33.3% C 0.123 H 336.5°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#5A134D
RGBrgb(90, 19, 77)
HSLhsl(311, 65%, 21%)
HSVhsv(311, 79%, 35%)
CMYKcmyk(0%, 78.9%, 14.4%, 64.7%)
CIE-LABlab(20.73, 38.39, -18.02)
CIE-LCHlch(20.73, 42.40, 334.86°)
OKLaboklab(33.3% 0.1128 -0.0491)
OKLCHoklch(33.3% 0.123 336.5)
XYZxyz(5.7890, 3.1758, 7.3278)
Luminance0.0318 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A134D #135A20
analogous
#44135A #5A134D #5A132A
triadic
#5A134D #4D5A13 #134D5A
tetradic
#5A134D #5A4413 #135A20 #132A5A
square
#5A134D #5A4413 #135A20 #132A5A
split-complementary
#5A134D #2A5A13 #135A44
monochromatic
#190516 #270822 #5A134D #8D1E78 #BF28A3

Accessibility & contrast

On white

12.84
#5A134D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#5A134D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A134D
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A134D#FFFFFF#000000##FFFFFF
##5A134D1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142B4F
Deuteranopia (green-blind)
#2D364B
Tritanopia (blue-blind)
#5F182E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5a134d;
/* rgb */ color: rgb(90, 19, 77);
/* oklch */ color: oklch(33.3% 0.123 336.5);
Tailwind
colors: {
  custom: {
    50: '#8b597f',
    500: '#5a134d',
    950: '#000000',
  },
}
SCSS
$custom: #5a134d;
$custom-light: #8b597f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a134d",
  "rgb": {
    "r": 90,
    "g": 19,
    "b": 77
  },
  "hsl": {
    "h": 310.986,
    "s": 65.138,
    "l": 21.373
  },
  "oklch": {
    "l": 0.33295,
    "c": 0.123,
    "h": 336.5
  },
  "luminance": 0.03175
}

Semantic roles & 50–950 ramp

primary
#5A134D
secondary
#379247
accent
#E85F40
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A134D

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

Preview Lab → · Contrast checker → · Palette generator →

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