#5A124C#5A124C

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

Color values

HEX#5A124C
RGBrgb(90, 18, 76)
HSLhsl(312, 67%, 21%)
HSVhsv(312, 80%, 35%)
CMYKcmyk(0%, 80%, 15.6%, 64.7%)
CIE-LABlab(20.55, 38.59, -17.62)
CIE-LCHlch(20.55, 42.42, 335.45°)
OKLaboklab(33.15% 0.1138 -0.0479)
OKLCHoklch(33.15% 0.123 337.2)
XYZxyz(5.7374, 3.1286, 7.1378)
Luminance0.0313 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A124C #125A20
analogous
#44125A #5A124C #5A1228
triadic
#5A124C #4C5A12 #124C5A
tetradic
#5A124C #5A4412 #125A20 #12285A
square
#5A124C #5A4412 #125A20 #12285A
split-complementary
#5A124C #285A12 #125A44
monochromatic
#1A0516 #270821 #5A124C #8D1C77 #C026A2

Accessibility & contrast

On white

12.92
#5A124C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A124C
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A124C#FFFFFF#000000##FFFFFF
##5A124C1.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a124c;
/* rgb */ color: rgb(90, 18, 76);
/* oklch */ color: oklch(33.1% 0.123 337.2);
Tailwind
colors: {
  custom: {
    50: '#8c597e',
    500: '#5a124c',
    950: '#000000',
  },
}
SCSS
$custom: #5a124c;
$custom-light: #8c597e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a124c",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 76
  },
  "hsl": {
    "h": 311.667,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.33146,
    "c": 0.12344,
    "h": 337.2
  },
  "luminance": 0.03128
}

Semantic roles & 50–950 ramp

primary
#5A124C
secondary
#359347
accent
#EA603E
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A124C

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

Preview Lab → · Contrast checker → · Palette generator →

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