#5A1048#5A1048

#5A1048 is a dark, vivid pink. Relative luminance 0.030; OKLCH L 32.7% C 0.123 H 339.9°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#5A1048
RGBrgb(90, 16, 72)
HSLhsl(315, 70%, 21%)
HSVhsv(315, 82%, 35%)
CMYKcmyk(0%, 82.2%, 20%, 64.7%)
CIE-LABlab(20.09, 38.65, -15.60)
CIE-LCHlch(20.09, 41.68, 338.02°)
OKLaboklab(32.75% 0.1153 -0.0422)
OKLCHoklch(32.75% 0.123 339.9)
XYZxyz(5.5716, 3.0127, 6.4177)
Luminance0.0301 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1048 #105A22
analogous
#47105A #5A1048 #5A1023
triadic
#5A1048 #485A10 #10485A
tetradic
#5A1048 #5A4710 #105A22 #10235A
square
#5A1048 #5A4710 #105A22 #10235A
split-complementary
#5A1048 #235A10 #105A47
monochromatic
#1A0515 #26071E #5A1048 #8E1972 #C2229B

Accessibility & contrast

On white

13.11
#5A1048 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#5A1048 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1048
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1048#FFFFFF#000000##FFFFFF
##5A10481.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152949
Deuteranopia (green-blind)
#2E3546
Tritanopia (blue-blind)
#60132B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5a1048;
/* rgb */ color: rgb(90, 16, 72);
/* oklch */ color: oklch(32.7% 0.123 339.9);
Tailwind
colors: {
  custom: {
    50: '#8c587b',
    500: '#5a1048',
    950: '#000000',
  },
}
SCSS
$custom: #5a1048;
$custom-light: #8c587b;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1048",
  "rgb": {
    "r": 90,
    "g": 16,
    "b": 72
  },
  "hsl": {
    "h": 314.595,
    "s": 69.811,
    "l": 20.784
  },
  "oklch": {
    "l": 0.32746,
    "c": 0.12279,
    "h": 339.9
  },
  "luminance": 0.03012
}

Semantic roles & 50–950 ramp

primary
#5A1048
secondary
#33934A
accent
#ED663B
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0409
muted
#7D797B

Preview Lab

Preview with #5A1048

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

Preview Lab → · Contrast checker → · Palette generator →

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