#5A124A#5A124A

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

Color values

HEX#5A124A
RGBrgb(90, 18, 74)
HSLhsl(313, 67%, 21%)
HSVhsv(313, 80%, 35%)
CMYKcmyk(0%, 80%, 17.8%, 64.7%)
CIE-LABlab(20.44, 38.27, -16.43)
CIE-LCHlch(20.44, 41.64, 336.77°)
OKLaboklab(33.03% 0.1135 -0.0445)
OKLCHoklch(33.03% 0.122 338.6)
XYZxyz(5.6689, 3.1012, 6.7773)
Luminance0.0310 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A124A #125A22
analogous
#46125A #5A124A #5A1226
triadic
#5A124A #4A5A12 #124A5A
tetradic
#5A124A #5A4612 #125A22 #12265A
square
#5A124A #5A4612 #125A22 #12265A
split-complementary
#5A124A #265A12 #125A46
monochromatic
#1A0515 #270820 #5A124A #8D1C74 #C0269E

Accessibility & contrast

On white

12.96
#5A124A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A124A
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A124A#FFFFFF#000000##FFFFFF
##5A124A1.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162A4C
Deuteranopia (green-blind)
#2E3548
Tritanopia (blue-blind)
#5F152C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5a124a;
/* rgb */ color: rgb(90, 18, 74);
/* oklch */ color: oklch(33.0% 0.122 338.6);
Tailwind
colors: {
  custom: {
    50: '#8c587c',
    500: '#5a124a',
    950: '#000000',
  },
}
SCSS
$custom: #5a124a;
$custom-light: #8c587c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a124a",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 74
  },
  "hsl": {
    "h": 313.333,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.33034,
    "c": 0.12193,
    "h": 338.6
  },
  "luminance": 0.03101
}

Semantic roles & 50–950 ramp

primary
#5A124A
secondary
#35934A
accent
#EA643E
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C0409
muted
#7D797B

Preview Lab

Preview with #5A124A

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

Preview Lab → · Contrast checker → · Palette generator →

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