#5A102C#5A102C

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

Color values

HEX#5A102C
RGBrgb(90, 16, 44)
HSLhsl(337, 70%, 21%)
HSVhsv(337, 82%, 35%)
CMYKcmyk(0%, 82.2%, 51.1%, 64.7%)
CIE-LABlab(18.91, 35.05, 2.22)
CIE-LCHlch(18.91, 35.12, 3.62°)
OKLaboklab(31.5% 0.1074 0.0061)
OKLCHoklch(31.5% 0.108 3.2)
XYZxyz(4.8568, 2.7267, 2.6530)
Luminance0.0273 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A102C #105A3E
analogous
#5A1051 #5A102C #5A1910
triadic
#5A102C #2C5A10 #102C5A
tetradic
#5A102C #515A10 #105A3E #19105A
square
#5A102C #515A10 #105A3E #19105A
split-complementary
#5A102C #105A19 #10515A
monochromatic
#1A050D #260713 #5A102C #8E1945 #C2225F

Accessibility & contrast

On white

13.59
#5A102C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A102C
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A102C#FFFFFF#000000##FFFFFF
##5A102C1.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22252D
Deuteranopia (green-blind)
#36332A
Tritanopia (blue-blind)
#63021C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #5a102c;
/* rgb */ color: rgb(90, 16, 44);
/* oklch */ color: oklch(31.5% 0.108 3.2);
Tailwind
colors: {
  custom: {
    50: '#8d5664',
    500: '#5a102c',
    950: '#000000',
  },
}
SCSS
$custom: #5a102c;
$custom-light: #8d5664;
$custom-dark: #000000;
JSON
{
  "hex": "#5a102c",
  "rgb": {
    "r": 90,
    "g": 16,
    "b": 44
  },
  "hsl": {
    "h": 337.297,
    "s": 69.811,
    "l": 20.784
  },
  "oklch": {
    "l": 0.31501,
    "c": 0.10756,
    "h": 3.2
  },
  "luminance": 0.02726
}

Semantic roles & 50–950 ramp

primary
#5A102C
secondary
#33936F
accent
#EDA93B
background
#F9F5F6
surface
#F1E9EB
border
#CBC5C6
text
#0D0305
muted
#7E787A

Preview Lab

Preview with #5A102C

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

Preview Lab → · Contrast checker → · Palette generator →

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