#5A1338#5A1338

#5A1338 is a dark, moderate pink. Relative luminance 0.029; OKLCH L 32.3% C 0.109 H 353.2°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#5A1338
RGBrgb(90, 19, 56)
HSLhsl(329, 65%, 21%)
HSVhsv(329, 79%, 35%)
CMYKcmyk(0%, 78.9%, 37.8%, 64.7%)
CIE-LABlab(19.74, 35.30, -5.04)
CIE-LCHlch(19.74, 35.66, 351.87°)
OKLaboklab(32.25% 0.1082 -0.0129)
OKLCHoklch(32.25% 0.109 353.2)
XYZxyz(5.1634, 2.9255, 4.0334)
Luminance0.0293 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1338 #135A35
analogous
#59135A #5A1338 #5A1315
triadic
#5A1338 #385A13 #13385A
tetradic
#5A1338 #5A5913 #135A35 #13155A
square
#5A1338 #5A5913 #135A35 #13155A
split-complementary
#5A1338 #155A13 #135A59
monochromatic
#190510 #270819 #5A1338 #8D1E57 #BF2877

Accessibility & contrast

On white

13.25
#5A1338 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1338
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1338#FFFFFF#000000##FFFFFF
##5A13381.0013.251.5913.25
#FFFFFF13.251.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202839
Deuteranopia (green-blind)
#343436
Tritanopia (blue-blind)
#610D23
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5a1338;
/* rgb */ color: rgb(90, 19, 56);
/* oklch */ color: oklch(32.3% 0.109 353.2);
Tailwind
colors: {
  custom: {
    50: '#8c586e',
    500: '#5a1338',
    950: '#000000',
  },
}
SCSS
$custom: #5a1338;
$custom-light: #8c586e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1338",
  "rgb": {
    "r": 90,
    "g": 19,
    "b": 56
  },
  "hsl": {
    "h": 328.732,
    "s": 65.138,
    "l": 21.373
  },
  "oklch": {
    "l": 0.32251,
    "c": 0.10896,
    "h": 353.2
  },
  "luminance": 0.02925
}

Semantic roles & 50–950 ramp

primary
#5A1338
secondary
#379262
accent
#E89040
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0C0407
muted
#7D797A

Preview Lab

Preview with #5A1338

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

Preview Lab → · Contrast checker → · Palette generator →

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