#5A124E#5A124E

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

Color values

HEX#5A124E
RGBrgb(90, 18, 78)
HSLhsl(310, 67%, 21%)
HSVhsv(310, 80%, 35%)
CMYKcmyk(0%, 80%, 13.3%, 64.7%)
CIE-LABlab(20.66, 38.92, -18.81)
CIE-LCHlch(20.66, 43.22, 334.20°)
OKLaboklab(33.26% 0.114 -0.0513)
OKLCHoklch(33.26% 0.125 335.8)
XYZxyz(5.8080, 3.1569, 7.5097)
Luminance0.0316 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A124E #125A1E
analogous
#42125A #5A124E #5A122A
triadic
#5A124E #4E5A12 #124E5A
tetradic
#5A124E #5A4212 #125A1E #122A5A
square
#5A124E #5A4212 #125A1E #122A5A
split-complementary
#5A124E #2A5A12 #125A42
monochromatic
#1A0516 #270822 #5A124E #8D1C7A #C026A6

Accessibility & contrast

On white

12.87
#5A124E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#5A124E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A124E
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A124E#FFFFFF#000000##FFFFFF
##5A124E1.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132B50
Deuteranopia (green-blind)
#2C364C
Tritanopia (blue-blind)
#5F182E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5a124e;
/* rgb */ color: rgb(90, 18, 78);
/* oklch */ color: oklch(33.3% 0.125 335.8);
Tailwind
colors: {
  custom: {
    50: '#8b5980',
    500: '#5a124e',
    950: '#000000',
  },
}
SCSS
$custom: #5a124e;
$custom-light: #8b5980;
$custom-dark: #000000;
JSON
{
  "hex": "#5a124e",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 78
  },
  "hsl": {
    "h": 310,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.3326,
    "c": 0.125,
    "h": 335.8
  },
  "luminance": 0.03156
}

Semantic roles & 50–950 ramp

primary
#5A124E
secondary
#359345
accent
#EA5B3E
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A124E

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

Preview Lab → · Contrast checker → · Palette generator →

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