#5A124D#5A124D

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

Color values

HEX#5A124D
RGBrgb(90, 18, 77)
HSLhsl(311, 67%, 21%)
HSVhsv(311, 80%, 35%)
CMYKcmyk(0%, 80%, 14.4%, 64.7%)
CIE-LABlab(20.61, 38.75, -18.22)
CIE-LCHlch(20.61, 42.82, 334.82°)
OKLaboklab(33.2% 0.1139 -0.0496)
OKLCHoklch(33.2% 0.124 336.5)
XYZxyz(5.7724, 3.1426, 7.3223)
Luminance0.0314 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A124D #125A1F
analogous
#43125A #5A124D #5A1229
triadic
#5A124D #4D5A12 #124D5A
tetradic
#5A124D #5A4312 #125A1F #12295A
square
#5A124D #5A4312 #125A1F #12295A
split-complementary
#5A124D #295A12 #125A43
monochromatic
#1A0516 #270821 #5A124D #8D1C79 #C026A4

Accessibility & contrast

On white

12.90
#5A124D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A124D
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A124D#FFFFFF#000000##FFFFFF
##5A124D1.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132B4F
Deuteranopia (green-blind)
#2D354B
Tritanopia (blue-blind)
#5F172E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5a124d;
/* rgb */ color: rgb(90, 18, 77);
/* oklch */ color: oklch(33.2% 0.124 336.5);
Tailwind
colors: {
  custom: {
    50: '#8c597f',
    500: '#5a124d',
    950: '#000000',
  },
}
SCSS
$custom: #5a124d;
$custom-light: #8c597f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a124d",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 77
  },
  "hsl": {
    "h": 310.833,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.33203,
    "c": 0.12422,
    "h": 336.5
  },
  "luminance": 0.03142
}

Semantic roles & 50–950 ramp

primary
#5A124D
secondary
#359346
accent
#EA5D3E
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A124D

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

Preview Lab → · Contrast checker → · Palette generator →

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