#5A1045#5A1045

#5A1045 is a dark, vivid pink. Relative luminance 0.030; OKLCH L 32.6% C 0.121 H 342.1°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#5A1045
RGBrgb(90, 16, 69)
HSLhsl(317, 70%, 21%)
HSVhsv(317, 82%, 35%)
CMYKcmyk(0%, 82.2%, 23.3%, 64.7%)
CIE-LABlab(19.94, 38.19, -13.78)
CIE-LCHlch(19.94, 40.60, 340.16°)
OKLaboklab(32.59% 0.1149 -0.037)
OKLCHoklch(32.59% 0.121 342.1)
XYZxyz(5.4761, 2.9745, 5.9148)
Luminance0.0297 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1045 #105A25
analogous
#4A105A #5A1045 #5A1020
triadic
#5A1045 #455A10 #10455A
tetradic
#5A1045 #5A4A10 #105A25 #10205A
square
#5A1045 #5A4A10 #105A25 #10205A
split-complementary
#5A1045 #205A10 #105A4A
monochromatic
#1A0514 #26071D #5A1045 #8E196D #C22295

Accessibility & contrast

On white

13.17
#5A1045 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#5A1045 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1045
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1045#FFFFFF#000000##FFFFFF
##5A10451.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172846
Deuteranopia (green-blind)
#2F3443
Tritanopia (blue-blind)
#601129
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5a1045;
/* rgb */ color: rgb(90, 16, 69);
/* oklch */ color: oklch(32.6% 0.121 342.1);
Tailwind
colors: {
  custom: {
    50: '#8c5778',
    500: '#5a1045',
    950: '#000000',
  },
}
SCSS
$custom: #5a1045;
$custom-light: #8c5778;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1045",
  "rgb": {
    "r": 90,
    "g": 16,
    "b": 69
  },
  "hsl": {
    "h": 317.027,
    "s": 69.811,
    "l": 20.784
  },
  "oklch": {
    "l": 0.32586,
    "c": 0.12066,
    "h": 342.1
  },
  "luminance": 0.02974
}

Semantic roles & 50–950 ramp

primary
#5A1045
secondary
#33934E
accent
#ED6E3B
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0409
muted
#7D797B

Preview Lab

Preview with #5A1045

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

Preview Lab → · Contrast checker → · Palette generator →

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