#5A114B#5A114B

#5A114B is a dark, vivid pink. Relative luminance 0.031; OKLCH L 33.0% C 0.124 H 337.8°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#5A114B
RGBrgb(90, 17, 75)
HSLhsl(312, 68%, 21%)
HSVhsv(312, 81%, 35%)
CMYKcmyk(0%, 81.1%, 16.7%, 64.7%)
CIE-LABlab(20.37, 38.78, -17.22)
CIE-LCHlch(20.37, 42.43, 336.06°)
OKLaboklab(33% 0.1147 -0.0468)
OKLCHoklch(33% 0.124 337.8)
XYZxyz(5.6870, 3.0831, 6.9508)
Luminance0.0308 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A114B #115A20
analogous
#44115A #5A114B #5A1126
triadic
#5A114B #4B5A11 #114B5A
tetradic
#5A114B #5A4411 #115A20 #11265A
square
#5A114B #5A4411 #115A20 #11265A
split-complementary
#5A114B #265A11 #115A44
monochromatic
#1A0515 #270720 #5A114B #8D1B76 #C124A1

Accessibility & contrast

On white

12.99
#5A114B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A114B
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A114B#FFFFFF#000000##FFFFFF
##5A114B1.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142A4D
Deuteranopia (green-blind)
#2D3549
Tritanopia (blue-blind)
#5F152D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5a114b;
/* rgb */ color: rgb(90, 17, 75);
/* oklch */ color: oklch(33.0% 0.124 337.8);
Tailwind
colors: {
  custom: {
    50: '#8c587d',
    500: '#5a114b',
    950: '#000000',
  },
}
SCSS
$custom: #5a114b;
$custom-light: #8c587d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a114b",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 75
  },
  "hsl": {
    "h": 312.329,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.33,
    "c": 0.12387,
    "h": 337.8
  },
  "luminance": 0.03083
}

Semantic roles & 50–950 ramp

primary
#5A114B
secondary
#349347
accent
#EB613D
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C0409
muted
#7D797B

Preview Lab

Preview with #5A114B

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

Preview Lab → · Contrast checker → · Palette generator →

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