#5A144E#5A144E

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

Color values

HEX#5A144E
RGBrgb(90, 20, 78)
HSLhsl(310, 64%, 22%)
HSVhsv(310, 78%, 35%)
CMYKcmyk(0%, 77.8%, 13.3%, 64.7%)
CIE-LABlab(20.92, 38.17, -18.40)
CIE-LCHlch(20.92, 42.38, 334.26°)
OKLaboklab(33.45% 0.1118 -0.0502)
OKLCHoklch(33.45% 0.123 335.8)
XYZxyz(5.8418, 3.2246, 7.5210)
Luminance0.0322 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A144E #145A20
analogous
#43145A #5A144E #5A142B
triadic
#5A144E #4E5A14 #144E5A
tetradic
#5A144E #5A4314 #145A20 #142B5A
square
#5A144E #5A4314 #145A20 #142B5A
split-complementary
#5A144E #2B5A14 #145A43
monochromatic
#190616 #280923 #5A144E #8C1F79 #BE2AA5

Accessibility & contrast

On white

12.77
#5A144E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A144E
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A144E#FFFFFF#000000##FFFFFF
##5A144E1.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152C50
Deuteranopia (green-blind)
#2D364C
Tritanopia (blue-blind)
#5F192F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5a144e;
/* rgb */ color: rgb(90, 20, 78);
/* oklch */ color: oklch(33.4% 0.123 335.8);
Tailwind
colors: {
  custom: {
    50: '#8b5980',
    500: '#5a144e',
    950: '#000000',
  },
}
SCSS
$custom: #5a144e;
$custom-light: #8b5980;
$custom-dark: #000000;
JSON
{
  "hex": "#5a144e",
  "rgb": {
    "r": 90,
    "g": 20,
    "b": 78
  },
  "hsl": {
    "h": 310.286,
    "s": 63.636,
    "l": 21.569
  },
  "oklch": {
    "l": 0.33448,
    "c": 0.12253,
    "h": 335.8
  },
  "luminance": 0.03224
}

Semantic roles & 50–950 ramp

primary
#5A144E
secondary
#389247
accent
#E75E41
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A144E

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

Preview Lab → · Contrast checker → · Palette generator →

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