#5A134E#5A134E

#5A134E is a dark, vivid pink. Relative luminance 0.032; OKLCH L 33.4% C 0.124 H 335.8°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#5A134E
RGBrgb(90, 19, 78)
HSLhsl(310, 65%, 21%)
HSVhsv(310, 79%, 35%)
CMYKcmyk(0%, 78.9%, 13.3%, 64.7%)
CIE-LABlab(20.79, 38.55, -18.61)
CIE-LCHlch(20.79, 42.81, 334.23°)
OKLaboklab(33.35% 0.1129 -0.0508)
OKLCHoklch(33.35% 0.124 335.8)
XYZxyz(5.8246, 3.1900, 7.5152)
Luminance0.0319 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A134E #135A1F
analogous
#43135A #5A134E #5A132B
triadic
#5A134E #4E5A13 #134E5A
tetradic
#5A134E #5A4313 #135A1F #132B5A
square
#5A134E #5A4313 #135A1F #132B5A
split-complementary
#5A134E #2B5A13 #135A43
monochromatic
#190516 #270822 #5A134E #8D1E7A #BF28A6

Accessibility & contrast

On white

12.82
#5A134E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A134E
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A134E#FFFFFF#000000##FFFFFF
##5A134E1.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142B50
Deuteranopia (green-blind)
#2D364C
Tritanopia (blue-blind)
#5F182F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5a134e;
/* rgb */ color: rgb(90, 19, 78);
/* oklch */ color: oklch(33.4% 0.124 335.8);
Tailwind
colors: {
  custom: {
    50: '#8b5980',
    500: '#5a134e',
    950: '#000000',
  },
}
SCSS
$custom: #5a134e;
$custom-light: #8b5980;
$custom-dark: #000000;
JSON
{
  "hex": "#5a134e",
  "rgb": {
    "r": 90,
    "g": 19,
    "b": 78
  },
  "hsl": {
    "h": 310.141,
    "s": 65.138,
    "l": 21.373
  },
  "oklch": {
    "l": 0.33352,
    "c": 0.12379,
    "h": 335.8
  },
  "luminance": 0.03189
}

Semantic roles & 50–950 ramp

primary
#5A134E
secondary
#379246
accent
#E85C40
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A134E

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

Preview Lab → · Contrast checker → · Palette generator →

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