#5A2139#5A2139

#5A2139 is a dark, moderate pink. Relative luminance 0.036; OKLCH L 34.0% C 0.088 H 356.6°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#5A2139
RGBrgb(90, 33, 57)
HSLhsl(335, 46%, 24%)
HSVhsv(335, 63%, 35%)
CMYKcmyk(0%, 63.3%, 36.7%, 64.7%)
CIE-LABlab(22.15, 28.94, -2.16)
CIE-LCHlch(22.15, 29.02, 355.74°)
OKLaboklab(34.04% 0.0882 -0.0053)
OKLCHoklch(34.04% 0.088 356.6)
XYZxyz(5.4991, 3.5574, 4.2671)
Luminance0.0356 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2139 #215A42
analogous
#5A2156 #5A2139 #5A2621
triadic
#5A2139 #395A21 #21395A
tetradic
#5A2139 #565A21 #215A42 #26215A
square
#5A2139 #565A21 #215A42 #26215A
split-complementary
#5A2139 #215A26 #21565A
monochromatic
#16080E #2D111D #5A2139 #873155 #B44272

Accessibility & contrast

On white

12.27
#5A2139 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#5A2139 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2139
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2139#FFFFFF#000000##FFFFFF
##5A21391.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A2E3A
Deuteranopia (green-blind)
#393938
Tritanopia (blue-blind)
#611D2A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5a2139;
/* rgb */ color: rgb(90, 33, 57);
/* oklch */ color: oklch(34.0% 0.088 356.6);
Tailwind
colors: {
  custom: {
    50: '#8b5f6f',
    500: '#5a2139',
    950: '#000000',
  },
}
SCSS
$custom: #5a2139;
$custom-light: #8b5f6f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2139",
  "rgb": {
    "r": 90,
    "g": 33,
    "b": 57
  },
  "hsl": {
    "h": 334.737,
    "s": 46.341,
    "l": 24.118
  },
  "oklch": {
    "l": 0.34042,
    "c": 0.08835,
    "h": 356.6
  },
  "luminance": 0.03557
}

Semantic roles & 50–950 ramp

primary
#5A2139
secondary
#498E71
accent
#D69E52
background
#F8F5F6
surface
#F0E9EC
border
#CBC5C7
text
#0C0507
muted
#7D797A

Preview Lab

Preview with #5A2139

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

Preview Lab → · Contrast checker → · Palette generator →

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