#5A2136#5A2136

#5A2136 is a dark, moderate pink. Relative luminance 0.035; OKLCH L 33.9% C 0.087 H 359.8°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#5A2136
RGBrgb(90, 33, 54)
HSLhsl(338, 46%, 24%)
HSVhsv(338, 63%, 35%)
CMYKcmyk(0%, 63.3%, 40%, 64.7%)
CIE-LABlab(22.05, 28.54, -0.24)
CIE-LCHlch(22.05, 28.54, 359.51°)
OKLaboklab(33.93% 0.087 -0.0003)
OKLCHoklch(33.93% 0.087 359.8)
XYZxyz(5.4265, 3.5283, 3.8846)
Luminance0.0353 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2136 #215A45
analogous
#5A2153 #5A2136 #5A2921
triadic
#5A2136 #365A21 #21365A
tetradic
#5A2136 #535A21 #215A45 #29215A
square
#5A2136 #535A21 #215A45 #29215A
split-complementary
#5A2136 #215A29 #21535A
monochromatic
#16080D #2D111B #5A2136 #873151 #B4426C

Accessibility & contrast

On white

12.31
#5A2136 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A2136
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2136#FFFFFF#000000##FFFFFF
##5A21361.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B2E37
Deuteranopia (green-blind)
#3A3935
Tritanopia (blue-blind)
#611C29
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5a2136;
/* rgb */ color: rgb(90, 33, 54);
/* oklch */ color: oklch(33.9% 0.087 359.8);
Tailwind
colors: {
  custom: {
    50: '#8b5f6c',
    500: '#5a2136',
    950: '#000000',
  },
}
SCSS
$custom: #5a2136;
$custom-light: #8b5f6c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2136",
  "rgb": {
    "r": 90,
    "g": 33,
    "b": 54
  },
  "hsl": {
    "h": 337.895,
    "s": 46.341,
    "l": 24.118
  },
  "oklch": {
    "l": 0.3393,
    "c": 0.08703,
    "h": 359.8
  },
  "luminance": 0.03528
}

Semantic roles & 50–950 ramp

primary
#5A2136
secondary
#498E75
accent
#D6A552
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0C0507
muted
#7D797A

Preview Lab

Preview with #5A2136

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

Preview Lab → · Contrast checker → · Palette generator →

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