#5A1038#5A1038

#5A1038 is a dark, moderate pink. Relative luminance 0.028; OKLCH L 32.0% C 0.113 H 352.6°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#5A1038
RGBrgb(90, 16, 56)
HSLhsl(328, 70%, 21%)
HSVhsv(328, 82%, 35%)
CMYKcmyk(0%, 82.2%, 37.8%, 64.7%)
CIE-LABlab(19.35, 36.41, -5.63)
CIE-LCHlch(19.35, 36.84, 351.21°)
OKLaboklab(31.96% 0.1117 -0.0145)
OKLCHoklch(31.96% 0.113 352.6)
XYZxyz(5.1159, 2.8304, 4.0175)
Luminance0.0283 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1038 #105A32
analogous
#57105A #5A1038 #5A1013
triadic
#5A1038 #385A10 #10385A
tetradic
#5A1038 #5A5710 #105A32 #10135A
square
#5A1038 #5A5710 #105A32 #10135A
split-complementary
#5A1038 #135A10 #105A57
monochromatic
#1A0510 #260718 #5A1038 #8E1958 #C22279

Accessibility & contrast

On white

13.41
#5A1038 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#5A1038 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1038
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1038#FFFFFF#000000##FFFFFF
##5A10381.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E2639
Deuteranopia (green-blind)
#333436
Tritanopia (blue-blind)
#620922
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #5a1038;
/* rgb */ color: rgb(90, 16, 56);
/* oklch */ color: oklch(32.0% 0.113 352.6);
Tailwind
colors: {
  custom: {
    50: '#8c576e',
    500: '#5a1038',
    950: '#000000',
  },
}
SCSS
$custom: #5a1038;
$custom-light: #8c576e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1038",
  "rgb": {
    "r": 90,
    "g": 16,
    "b": 56
  },
  "hsl": {
    "h": 327.568,
    "s": 69.811,
    "l": 20.784
  },
  "oklch": {
    "l": 0.31964,
    "c": 0.11261,
    "h": 352.6
  },
  "luminance": 0.0283
}

Semantic roles & 50–950 ramp

primary
#5A1038
secondary
#33935F
accent
#ED8D3B
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0D0307
muted
#7D787A

Preview Lab

Preview with #5A1038

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

Preview Lab → · Contrast checker → · Palette generator →

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