#5A1245#5A1245

#5A1245 is a dark, moderate pink. Relative luminance 0.030; OKLCH L 32.8% C 0.118 H 342.3°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#5A1245
RGBrgb(90, 18, 69)
HSLhsl(318, 67%, 21%)
HSVhsv(318, 80%, 35%)
CMYKcmyk(0%, 80%, 23.3%, 64.7%)
CIE-LABlab(20.19, 37.49, -13.39)
CIE-LCHlch(20.19, 39.81, 340.34°)
OKLaboklab(32.77% 0.1127 -0.0359)
OKLCHoklch(32.77% 0.118 342.3)
XYZxyz(5.5071, 3.0365, 5.9251)
Luminance0.0304 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1245 #125A27
analogous
#4B125A #5A1245 #5A1221
triadic
#5A1245 #455A12 #12455A
tetradic
#5A1245 #5A4B12 #125A27 #12215A
square
#5A1245 #5A4B12 #125A27 #12215A
split-complementary
#5A1245 #215A12 #125A4B
monochromatic
#1A0514 #27081E #5A1245 #8D1C6C #C02693

Accessibility & contrast

On white

13.07
#5A1245 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1245
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1245#FFFFFF#000000##FFFFFF
##5A12451.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192946
Deuteranopia (green-blind)
#303543
Tritanopia (blue-blind)
#60132A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5a1245;
/* rgb */ color: rgb(90, 18, 69);
/* oklch */ color: oklch(32.8% 0.118 342.3);
Tailwind
colors: {
  custom: {
    50: '#8c5878',
    500: '#5a1245',
    950: '#000000',
  },
}
SCSS
$custom: #5a1245;
$custom-light: #8c5878;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1245",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 69
  },
  "hsl": {
    "h": 317.5,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32766,
    "c": 0.11828,
    "h": 342.3
  },
  "luminance": 0.03036
}

Semantic roles & 50–950 ramp

primary
#5A1245
secondary
#359350
accent
#EA703E
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0409
muted
#7D797B

Preview Lab

Preview with #5A1245

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

Preview Lab → · Contrast checker → · Palette generator →

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