#5A1249#5A1249

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

Color values

HEX#5A1249
RGBrgb(90, 18, 73)
HSLhsl(314, 67%, 21%)
HSVhsv(314, 80%, 35%)
CMYKcmyk(0%, 80%, 18.9%, 64.7%)
CIE-LABlab(20.39, 38.11, -15.82)
CIE-LCHlch(20.39, 41.26, 337.45°)
OKLaboklab(32.98% 0.1134 -0.0428)
OKLCHoklch(32.98% 0.121 339.3)
XYZxyz(5.6355, 3.0879, 6.6013)
Luminance0.0309 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1249 #125A23
analogous
#47125A #5A1249 #5A1225
triadic
#5A1249 #495A12 #12495A
tetradic
#5A1249 #5A4712 #125A23 #12255A
square
#5A1249 #5A4712 #125A23 #12255A
split-complementary
#5A1249 #255A12 #125A47
monochromatic
#1A0515 #270820 #5A1249 #8D1C72 #C0269C

Accessibility & contrast

On white

12.98
#5A1249 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1249
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1249#FFFFFF#000000##FFFFFF
##5A12491.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162A4A
Deuteranopia (green-blind)
#2E3547
Tritanopia (blue-blind)
#60152C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5a1249;
/* rgb */ color: rgb(90, 18, 73);
/* oklch */ color: oklch(33.0% 0.121 339.3);
Tailwind
colors: {
  custom: {
    50: '#8c587c',
    500: '#5a1249',
    950: '#000000',
  },
}
SCSS
$custom: #5a1249;
$custom-light: #8c587c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1249",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 73
  },
  "hsl": {
    "h": 314.167,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32979,
    "c": 0.12117,
    "h": 339.3
  },
  "luminance": 0.03087
}

Semantic roles & 50–950 ramp

primary
#5A1249
secondary
#35934B
accent
#EA673E
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C0409
muted
#7D797B

Preview Lab

Preview with #5A1249

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

Preview Lab → · Contrast checker → · Palette generator →

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