#5A1028#5A1028

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

Color values

HEX#5A1028
RGBrgb(90, 16, 40)
HSLhsl(341, 70%, 21%)
HSVhsv(341, 82%, 35%)
CMYKcmyk(0%, 82.2%, 55.6%, 64.7%)
CIE-LABlab(18.79, 34.66, 4.89)
CIE-LCHlch(18.79, 35.00, 8.04°)
OKLaboklab(31.37% 0.1057 0.0127)
OKLCHoklch(31.37% 0.106 6.8)
XYZxyz(4.7852, 2.6981, 2.2759)
Luminance0.0270 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1028 #105A42
analogous
#5A104D #5A1028 #5A1D10
triadic
#5A1028 #285A10 #10285A
tetradic
#5A1028 #4D5A10 #105A42 #1D105A
square
#5A1028 #4D5A10 #105A42 #1D105A
split-complementary
#5A1028 #105A1D #104D5A
monochromatic
#1A050C #260711 #5A1028 #8E193F #C22256

Accessibility & contrast

On white

13.64
#5A1028 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1028
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1028#FFFFFF#000000##FFFFFF
##5A10281.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#232428
Deuteranopia (green-blind)
#363326
Tritanopia (blue-blind)
#63001A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #5a1028;
/* rgb */ color: rgb(90, 16, 40);
/* oklch */ color: oklch(31.4% 0.106 6.8);
Tailwind
colors: {
  custom: {
    50: '#8d5661',
    500: '#5a1028',
    950: '#000000',
  },
}
SCSS
$custom: #5a1028;
$custom-light: #8d5661;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1028",
  "rgb": {
    "r": 90,
    "g": 16,
    "b": 40
  },
  "hsl": {
    "h": 340.541,
    "s": 69.811,
    "l": 20.784
  },
  "oklch": {
    "l": 0.31371,
    "c": 0.10649,
    "h": 6.8
  },
  "luminance": 0.02697
}

Semantic roles & 50–950 ramp

primary
#5A1028
secondary
#339374
accent
#EDB33B
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0305
muted
#7E7879

Preview Lab

Preview with #5A1028

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

Preview Lab → · Contrast checker → · Palette generator →

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