#5A1138#5A1138

#5A1138 is a dark, moderate pink. Relative luminance 0.029; OKLCH L 32.1% C 0.111 H 352.8°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#5A1138
RGBrgb(90, 17, 56)
HSLhsl(328, 68%, 21%)
HSVhsv(328, 81%, 35%)
CMYKcmyk(0%, 81.1%, 37.8%, 64.7%)
CIE-LABlab(19.48, 36.05, -5.44)
CIE-LCHlch(19.48, 36.46, 351.41°)
OKLaboklab(32.06% 0.1106 -0.014)
OKLCHoklch(32.06% 0.111 352.8)
XYZxyz(5.1310, 2.8607, 4.0226)
Luminance0.0286 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1138 #115A33
analogous
#57115A #5A1138 #5A1114
triadic
#5A1138 #385A11 #11385A
tetradic
#5A1138 #5A5711 #115A33 #11145A
square
#5A1138 #5A5711 #115A33 #11145A
split-complementary
#5A1138 #145A11 #115A57
monochromatic
#1A0510 #270718 #5A1138 #8D1B58 #C12478

Accessibility & contrast

On white

13.36
#5A1138 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1138
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1138#FFFFFF#000000##FFFFFF
##5A11381.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F2739
Deuteranopia (green-blind)
#333436
Tritanopia (blue-blind)
#620A22
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #5a1138;
/* rgb */ color: rgb(90, 17, 56);
/* oklch */ color: oklch(32.1% 0.111 352.8);
Tailwind
colors: {
  custom: {
    50: '#8c576e',
    500: '#5a1138',
    950: '#000000',
  },
}
SCSS
$custom: #5a1138;
$custom-light: #8c576e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1138",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 56
  },
  "hsl": {
    "h": 327.945,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.32056,
    "c": 0.11144,
    "h": 352.8
  },
  "luminance": 0.0286
}

Semantic roles & 50–950 ramp

primary
#5A1138
secondary
#349360
accent
#EB8E3D
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0D0307
muted
#7D787A

Preview Lab

Preview with #5A1138

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

Preview Lab → · Contrast checker → · Palette generator →

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