#5A0D2A#5A0D2A

#5A0D2A is a dark, moderate pink. Relative luminance 0.026; OKLCH L 31.2% C 0.110 H 4.2°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#5A0D2A
RGBrgb(90, 13, 42)
HSLhsl(337, 75%, 20%)
HSVhsv(337, 86%, 35%)
CMYKcmyk(0%, 85.6%, 53.3%, 64.7%)
CIE-LABlab(18.49, 35.86, 3.04)
CIE-LCHlch(18.49, 35.99, 4.85°)
OKLaboklab(31.17% 0.1098 0.0081)
OKLCHoklch(31.17% 0.11 4.2)
XYZxyz(4.7787, 2.6293, 2.4459)
Luminance0.0263 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0D2A #0D5A3D
analogous
#5A0D50 #5A0D2A #5A170D
triadic
#5A0D2A #2A5A0D #0D2A5A
tetradic
#5A0D2A #505A0D #0D5A3D #170D5A
square
#5A0D2A #505A0D #0D5A3D #170D5A
split-complementary
#5A0D2A #0D5A17 #0D505A
monochromatic
#1B040C #250511 #5A0D2A #8F1543 #C51C5C

Accessibility & contrast

On white

13.76
#5A0D2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#5A0D2A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A0D2A
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0D2A#FFFFFF#000000##FFFFFF
##5A0D2A1.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21232B
Deuteranopia (green-blind)
#353228
Tritanopia (blue-blind)
#63001A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #5a0d2a;
/* rgb */ color: rgb(90, 13, 42);
/* oklch */ color: oklch(31.2% 0.110 4.2);
Tailwind
colors: {
  custom: {
    50: '#8d5563',
    500: '#5a0d2a',
    950: '#000000',
  },
}
SCSS
$custom: #5a0d2a;
$custom-light: #8d5563;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0d2a",
  "rgb": {
    "r": 90,
    "g": 13,
    "b": 42
  },
  "hsl": {
    "h": 337.403,
    "s": 74.757,
    "l": 20.196
  },
  "oklch": {
    "l": 0.31171,
    "c": 0.11014,
    "h": 4.2
  },
  "luminance": 0.02629
}

Semantic roles & 50–950 ramp

primary
#5A0D2A
secondary
#2E946E
accent
#F1AB36
background
#F9F5F5
surface
#F1E9EA
border
#CBC5C6
text
#0D0305
muted
#7E7879

Preview Lab

Preview with #5A0D2A

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

Preview Lab → · Contrast checker → · Palette generator →

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