#5A102B#5A102B

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

Color values

HEX#5A102B
RGBrgb(90, 16, 43)
HSLhsl(338, 70%, 21%)
HSVhsv(338, 82%, 35%)
CMYKcmyk(0%, 82.2%, 52.2%, 64.7%)
CIE-LABlab(18.88, 34.95, 2.88)
CIE-LCHlch(18.88, 35.07, 4.72°)
OKLaboklab(31.47% 0.107 0.0077)
OKLCHoklch(31.47% 0.107 4.1)
XYZxyz(4.8382, 2.7193, 2.5551)
Luminance0.0272 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A102B #105A3F
analogous
#5A1050 #5A102B #5A1A10
triadic
#5A102B #2B5A10 #102B5A
tetradic
#5A102B #505A10 #105A3F #1A105A
square
#5A102B #505A10 #105A3F #1A105A
split-complementary
#5A102B #105A1A #10505A
monochromatic
#1A050C #260712 #5A102B #8E1944 #C2225D

Accessibility & contrast

On white

13.60
#5A102B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A102B
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A102B#FFFFFF#000000##FFFFFF
##5A102B1.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a102b;
/* rgb */ color: rgb(90, 16, 43);
/* oklch */ color: oklch(31.5% 0.107 4.1);
Tailwind
colors: {
  custom: {
    50: '#8d5664',
    500: '#5a102b',
    950: '#000000',
  },
}
SCSS
$custom: #5a102b;
$custom-light: #8d5664;
$custom-dark: #000000;
JSON
{
  "hex": "#5a102b",
  "rgb": {
    "r": 90,
    "g": 16,
    "b": 43
  },
  "hsl": {
    "h": 338.108,
    "s": 69.811,
    "l": 20.784
  },
  "oklch": {
    "l": 0.31467,
    "c": 0.10726,
    "h": 4.1
  },
  "luminance": 0.02719
}

Semantic roles & 50–950 ramp

primary
#5A102B
secondary
#339370
accent
#EDAC3B
background
#F9F5F5
surface
#F1E9EA
border
#CBC5C6
text
#0D0305
muted
#7E7879

Preview Lab

Preview with #5A102B

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

Preview Lab → · Contrast checker → · Palette generator →

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