#5A1148#5A1148

#5A1148 is a dark, vivid pink. Relative luminance 0.030; OKLCH L 32.8% C 0.122 H 340.0°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#5A1148
RGBrgb(90, 17, 72)
HSLhsl(315, 68%, 21%)
HSVhsv(315, 81%, 35%)
CMYKcmyk(0%, 81.1%, 20%, 64.7%)
CIE-LABlab(20.22, 38.31, -15.41)
CIE-LCHlch(20.22, 41.29, 338.08°)
OKLaboklab(32.83% 0.1143 -0.0416)
OKLCHoklch(32.83% 0.122 340)
XYZxyz(5.5868, 3.0430, 6.4228)
Luminance0.0304 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1148 #115A23
analogous
#47115A #5A1148 #5A1123
triadic
#5A1148 #485A11 #11485A
tetradic
#5A1148 #5A4711 #115A23 #11235A
square
#5A1148 #5A4711 #115A23 #11235A
split-complementary
#5A1148 #235A11 #115A47
monochromatic
#1A0515 #27071F #5A1148 #8D1B71 #C1249A

Accessibility & contrast

On white

13.06
#5A1148 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#5A1148 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1148
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1148#FFFFFF#000000##FFFFFF
##5A11481.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162949
Deuteranopia (green-blind)
#2E3546
Tritanopia (blue-blind)
#60142B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5a1148;
/* rgb */ color: rgb(90, 17, 72);
/* oklch */ color: oklch(32.8% 0.122 340.0);
Tailwind
colors: {
  custom: {
    50: '#8c587b',
    500: '#5a1148',
    950: '#000000',
  },
}
SCSS
$custom: #5a1148;
$custom-light: #8c587b;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1148",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 72
  },
  "hsl": {
    "h": 314.795,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.32834,
    "c": 0.12164,
    "h": 340
  },
  "luminance": 0.03042
}

Semantic roles & 50–950 ramp

primary
#5A1148
secondary
#34934B
accent
#EB683D
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0409
muted
#7D797B

Preview Lab

Preview with #5A1148

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

Preview Lab → · Contrast checker → · Palette generator →

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