#5A102D#5A102D

#5A102D is a dark, moderate pink. Relative luminance 0.027; OKLCH L 31.5% C 0.108 H 2.3°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#5A102D
RGBrgb(90, 16, 45)
HSLhsl(336, 70%, 21%)
HSVhsv(336, 82%, 35%)
CMYKcmyk(0%, 82.2%, 50%, 64.7%)
CIE-LABlab(18.95, 35.15, 1.55)
CIE-LCHlch(18.95, 35.18, 2.53°)
OKLaboklab(31.54% 0.1078 0.0044)
OKLCHoklch(31.54% 0.108 2.3)
XYZxyz(4.8758, 2.7344, 2.7531)
Luminance0.0273 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A102D #105A3D
analogous
#5A1052 #5A102D #5A1810
triadic
#5A102D #2D5A10 #102D5A
tetradic
#5A102D #525A10 #105A3D #18105A
square
#5A102D #525A10 #105A3D #18105A
split-complementary
#5A102D #105A18 #10525A
monochromatic
#1A050D #260713 #5A102D #8E1947 #C22261

Accessibility & contrast

On white

13.58
#5A102D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#5A102D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A102D
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A102D#FFFFFF#000000##FFFFFF
##5A102D1.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22252E
Deuteranopia (green-blind)
#35332B
Tritanopia (blue-blind)
#62021D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #5a102d;
/* rgb */ color: rgb(90, 16, 45);
/* oklch */ color: oklch(31.5% 0.108 2.3);
Tailwind
colors: {
  custom: {
    50: '#8d5665',
    500: '#5a102d',
    950: '#000000',
  },
}
SCSS
$custom: #5a102d;
$custom-light: #8d5665;
$custom-dark: #000000;
JSON
{
  "hex": "#5a102d",
  "rgb": {
    "r": 90,
    "g": 16,
    "b": 45
  },
  "hsl": {
    "h": 336.486,
    "s": 69.811,
    "l": 20.784
  },
  "oklch": {
    "l": 0.31535,
    "c": 0.10788,
    "h": 2.3
  },
  "luminance": 0.02734
}

Semantic roles & 50–950 ramp

primary
#5A102D
secondary
#33936D
accent
#EDA73B
background
#F9F5F6
surface
#F1E9EB
border
#CBC5C6
text
#0D0305
muted
#7E787A

Preview Lab

Preview with #5A102D

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

Preview Lab → · Contrast checker → · Palette generator →

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