#5A1438#5A1438

#5A1438 is a dark, moderate pink. Relative luminance 0.030; OKLCH L 32.4% C 0.108 H 353.4°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#5A1438
RGBrgb(90, 20, 56)
HSLhsl(329, 64%, 22%)
HSVhsv(329, 78%, 35%)
CMYKcmyk(0%, 77.8%, 37.8%, 64.7%)
CIE-LABlab(19.88, 34.91, -4.83)
CIE-LCHlch(19.88, 35.24, 352.12°)
OKLaboklab(32.35% 0.107 -0.0124)
OKLCHoklch(32.35% 0.108 353.4)
XYZxyz(5.1807, 2.9601, 4.0391)
Luminance0.0296 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1438 #145A36
analogous
#59145A #5A1438 #5A1415
triadic
#5A1438 #385A14 #14385A
tetradic
#5A1438 #5A5914 #145A36 #14155A
square
#5A1438 #5A5914 #145A36 #14155A
split-complementary
#5A1438 #155A14 #145A59
monochromatic
#190610 #280919 #5A1438 #8C1F57 #BE2A76

Accessibility & contrast

On white

13.19
#5A1438 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#5A1438 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1438
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1438#FFFFFF#000000##FFFFFF
##5A14381.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#212839
Deuteranopia (green-blind)
#343536
Tritanopia (blue-blind)
#610E24
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5a1438;
/* rgb */ color: rgb(90, 20, 56);
/* oklch */ color: oklch(32.4% 0.108 353.4);
Tailwind
colors: {
  custom: {
    50: '#8c596e',
    500: '#5a1438',
    950: '#000000',
  },
}
SCSS
$custom: #5a1438;
$custom-light: #8c596e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1438",
  "rgb": {
    "r": 90,
    "g": 20,
    "b": 56
  },
  "hsl": {
    "h": 329.143,
    "s": 63.636,
    "l": 21.569
  },
  "oklch": {
    "l": 0.32353,
    "c": 0.10766,
    "h": 353.4
  },
  "luminance": 0.02959
}

Semantic roles & 50–950 ramp

primary
#5A1438
secondary
#389264
accent
#E79241
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0C0407
muted
#7D797A

Preview Lab

Preview with #5A1438

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

Preview Lab → · Contrast checker → · Palette generator →

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