#5A102A#5A102A

#5A102A is a dark, moderate pink. Relative luminance 0.027; OKLCH L 31.4% C 0.107 H 5.0°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#5A102A
RGBrgb(90, 16, 42)
HSLhsl(339, 70%, 21%)
HSVhsv(339, 82%, 35%)
CMYKcmyk(0%, 82.2%, 53.3%, 64.7%)
CIE-LABlab(18.85, 34.85, 3.55)
CIE-LCHlch(18.85, 35.03, 5.82°)
OKLaboklab(31.43% 0.1066 0.0094)
OKLCHoklch(31.43% 0.107 5)
XYZxyz(4.8201, 2.7121, 2.4597)
Luminance0.0271 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A102A #105A40
analogous
#5A104F #5A102A #5A1B10
triadic
#5A102A #2A5A10 #102A5A
tetradic
#5A102A #4F5A10 #105A40 #1B105A
square
#5A102A #4F5A10 #105A40 #1B105A
split-complementary
#5A102A #105A1B #104F5A
monochromatic
#1A050C #260712 #5A102A #8E1942 #C2225A

Accessibility & contrast

On white

13.62
#5A102A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#5A102A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A102A
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A102A#FFFFFF#000000##FFFFFF
##5A102A1.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22252B
Deuteranopia (green-blind)
#363328
Tritanopia (blue-blind)
#63011B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #5a102a;
/* rgb */ color: rgb(90, 16, 42);
/* oklch */ color: oklch(31.4% 0.107 5.0);
Tailwind
colors: {
  custom: {
    50: '#8d5663',
    500: '#5a102a',
    950: '#000000',
  },
}
SCSS
$custom: #5a102a;
$custom-light: #8d5663;
$custom-dark: #000000;
JSON
{
  "hex": "#5a102a",
  "rgb": {
    "r": 90,
    "g": 16,
    "b": 42
  },
  "hsl": {
    "h": 338.919,
    "s": 69.811,
    "l": 20.784
  },
  "oklch": {
    "l": 0.31434,
    "c": 0.10698,
    "h": 5
  },
  "luminance": 0.02711
}

Semantic roles & 50–950 ramp

primary
#5A102A
secondary
#339371
accent
#EDAE3B
background
#F9F5F5
surface
#F1E9EA
border
#CBC5C6
text
#0D0305
muted
#7E7879

Preview Lab

Preview with #5A102A

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

Preview Lab → · Contrast checker → · Palette generator →

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