#5A1031#5A1031

#5A1031 is a dark, moderate pink. Relative luminance 0.028; OKLCH L 31.7% C 0.109 H 358.7°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#5A1031
RGBrgb(90, 16, 49)
HSLhsl(333, 70%, 21%)
HSVhsv(333, 82%, 35%)
CMYKcmyk(0%, 82.2%, 45.6%, 64.7%)
CIE-LABlab(19.08, 35.58, -1.09)
CIE-LCHlch(19.08, 35.60, 358.25°)
OKLaboklab(31.68% 0.1093 -0.0024)
OKLCHoklch(31.68% 0.109 358.7)
XYZxyz(4.9565, 2.7666, 3.1781)
Luminance0.0277 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1031 #105A39
analogous
#5A1056 #5A1031 #5A1410
triadic
#5A1031 #315A10 #10315A
tetradic
#5A1031 #565A10 #105A39 #14105A
square
#5A1031 #565A10 #105A39 #14105A
split-complementary
#5A1031 #105A14 #10565A
monochromatic
#1A050E #260715 #5A1031 #8E194D #C2226A

Accessibility & contrast

On white

13.52
#5A1031 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1031
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1031#FFFFFF#000000##FFFFFF
##5A10311.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202532
Deuteranopia (green-blind)
#35332F
Tritanopia (blue-blind)
#62041F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #5a1031;
/* rgb */ color: rgb(90, 16, 49);
/* oklch */ color: oklch(31.7% 0.109 358.7);
Tailwind
colors: {
  custom: {
    50: '#8d5768',
    500: '#5a1031',
    950: '#000000',
  },
}
SCSS
$custom: #5a1031;
$custom-light: #8d5768;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1031",
  "rgb": {
    "r": 90,
    "g": 16,
    "b": 49
  },
  "hsl": {
    "h": 333.243,
    "s": 69.811,
    "l": 20.784
  },
  "oklch": {
    "l": 0.31681,
    "c": 0.10935,
    "h": 358.7
  },
  "luminance": 0.02766
}

Semantic roles & 50–950 ramp

primary
#5A1031
secondary
#339368
accent
#ED9D3B
background
#F9F5F6
surface
#F1E9EB
border
#CBC5C6
text
#0D0306
muted
#7E787A

Preview Lab

Preview with #5A1031

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

Preview Lab → · Contrast checker → · Palette generator →

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