#5A114D#5A114D

#5A114D is a dark, vivid pink. Relative luminance 0.031; OKLCH L 33.1% C 0.125 H 336.4°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#5A114D
RGBrgb(90, 17, 77)
HSLhsl(311, 68%, 21%)
HSVhsv(311, 81%, 35%)
CMYKcmyk(0%, 81.1%, 14.4%, 64.7%)
CIE-LABlab(20.48, 39.10, -18.41)
CIE-LCHlch(20.48, 43.22, 334.79°)
OKLaboklab(33.11% 0.1149 -0.0502)
OKLCHoklch(33.11% 0.125 336.4)
XYZxyz(5.7566, 3.1109, 7.3170)
Luminance0.0311 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A114D #115A1E
analogous
#42115A #5A114D #5A1128
triadic
#5A114D #4D5A11 #114D5A
tetradic
#5A114D #5A4211 #115A1E #11285A
square
#5A114D #5A4211 #115A1E #11285A
split-complementary
#5A114D #285A11 #115A42
monochromatic
#1A0516 #270721 #5A114D #8D1B79 #C124A5

Accessibility & contrast

On white

12.95
#5A114D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#5A114D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A114D
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A114D#FFFFFF#000000##FFFFFF
##5A114D1.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122A4F
Deuteranopia (green-blind)
#2C354B
Tritanopia (blue-blind)
#5F162E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5a114d;
/* rgb */ color: rgb(90, 17, 77);
/* oklch */ color: oklch(33.1% 0.125 336.4);
Tailwind
colors: {
  custom: {
    50: '#8c587f',
    500: '#5a114d',
    950: '#000000',
  },
}
SCSS
$custom: #5a114d;
$custom-light: #8c587f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a114d",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 77
  },
  "hsl": {
    "h": 310.685,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.33114,
    "c": 0.12541,
    "h": 336.4
  },
  "luminance": 0.0311
}

Semantic roles & 50–950 ramp

primary
#5A114D
secondary
#349345
accent
#EB5C3D
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A114D

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

Preview Lab → · Contrast checker → · Palette generator →

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