#5A114C#5A114C

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

Color values

HEX#5A114C
RGBrgb(90, 17, 76)
HSLhsl(312, 68%, 21%)
HSVhsv(312, 81%, 35%)
CMYKcmyk(0%, 81.1%, 15.6%, 64.7%)
CIE-LABlab(20.43, 38.94, -17.82)
CIE-LCHlch(20.43, 42.82, 335.41°)
OKLaboklab(33.06% 0.1148 -0.0485)
OKLCHoklch(33.06% 0.125 337.1)
XYZxyz(5.7215, 3.0969, 7.1325)
Luminance0.0310 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A114C #115A1F
analogous
#43115A #5A114C #5A1127
triadic
#5A114C #4C5A11 #114C5A
tetradic
#5A114C #5A4311 #115A1F #11275A
square
#5A114C #5A4311 #115A1F #11275A
split-complementary
#5A114C #275A11 #115A43
monochromatic
#1A0516 #270721 #5A114C #8D1B77 #C124A3

Accessibility & contrast

On white

12.97
#5A114C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A114C
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A114C#FFFFFF#000000##FFFFFF
##5A114C1.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132A4E
Deuteranopia (green-blind)
#2D354A
Tritanopia (blue-blind)
#5F162D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5a114c;
/* rgb */ color: rgb(90, 17, 76);
/* oklch */ color: oklch(33.1% 0.125 337.1);
Tailwind
colors: {
  custom: {
    50: '#8c587e',
    500: '#5a114c',
    950: '#000000',
  },
}
SCSS
$custom: #5a114c;
$custom-light: #8c587e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a114c",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 76
  },
  "hsl": {
    "h": 311.507,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.33056,
    "c": 0.12464,
    "h": 337.1
  },
  "luminance": 0.03096
}

Semantic roles & 50–950 ramp

primary
#5A114C
secondary
#349346
accent
#EB5E3D
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A114C

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

Preview Lab → · Contrast checker → · Palette generator →

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