#5A1248#5A1248

#5A1248 is a dark, vivid pink. Relative luminance 0.031; OKLCH L 32.9% C 0.120 H 340.0°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#5A1248
RGBrgb(90, 18, 72)
HSLhsl(315, 67%, 21%)
HSVhsv(315, 80%, 35%)
CMYKcmyk(0%, 80%, 20%, 64.7%)
CIE-LABlab(20.34, 37.95, -15.22)
CIE-LCHlch(20.34, 40.89, 338.15°)
OKLaboklab(32.92% 0.1132 -0.0411)
OKLCHoklch(32.92% 0.12 340)
XYZxyz(5.6026, 3.0747, 6.4281)
Luminance0.0307 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1248 #125A24
analogous
#48125A #5A1248 #5A1224
triadic
#5A1248 #485A12 #12485A
tetradic
#5A1248 #5A4812 #125A24 #12245A
square
#5A1248 #5A4812 #125A24 #12245A
split-complementary
#5A1248 #245A12 #125A48
monochromatic
#1A0514 #27081F #5A1248 #8D1C71 #C0269A

Accessibility & contrast

On white

13.00
#5A1248 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1248
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1248#FFFFFF#000000##FFFFFF
##5A12481.0013.001.6113.00
#FFFFFF13.001.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172A49
Deuteranopia (green-blind)
#2F3546
Tritanopia (blue-blind)
#60142B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5a1248;
/* rgb */ color: rgb(90, 18, 72);
/* oklch */ color: oklch(32.9% 0.120 340.0);
Tailwind
colors: {
  custom: {
    50: '#8c587b',
    500: '#5a1248',
    950: '#000000',
  },
}
SCSS
$custom: #5a1248;
$custom-light: #8c587b;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1248",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 72
  },
  "hsl": {
    "h": 315,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32924,
    "c": 0.12044,
    "h": 340
  },
  "luminance": 0.03074
}

Semantic roles & 50–950 ramp

primary
#5A1248
secondary
#35934D
accent
#EA693E
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0409
muted
#7D797B

Preview Lab

Preview with #5A1248

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

Preview Lab → · Contrast checker → · Palette generator →

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