#5A2147#5A2147

#5A2147 is a dark, moderate pink. Relative luminance 0.037; OKLCH L 34.6% C 0.097 H 342.6°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#5A2147
RGBrgb(90, 33, 71)
HSLhsl(320, 46%, 24%)
HSVhsv(320, 63%, 35%)
CMYKcmyk(0%, 63.3%, 21.1%, 64.7%)
CIE-LABlab(22.71, 31.09, -10.88)
CIE-LCHlch(22.71, 32.94, 340.71°)
OKLaboklab(34.64% 0.0927 -0.029)
OKLCHoklch(34.64% 0.097 342.6)
XYZxyz(5.8978, 3.7168, 6.3668)
Luminance0.0372 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2147 #215A34
analogous
#51215A #5A2147 #5A212B
triadic
#5A2147 #475A21 #21475A
tetradic
#5A2147 #5A5121 #215A34 #212B5A
square
#5A2147 #5A5121 #215A34 #212B5A
split-complementary
#5A2147 #2B5A21 #215A51
monochromatic
#160812 #2D1124 #5A2147 #87316A #B4428E

Accessibility & contrast

On white

12.05
#5A2147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#5A2147 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2147
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2147#FFFFFF#000000##FFFFFF
##5A21471.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#253048
Deuteranopia (green-blind)
#363A46
Tritanopia (blue-blind)
#602131
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5a2147;
/* rgb */ color: rgb(90, 33, 71);
/* oklch */ color: oklch(34.6% 0.097 342.6);
Tailwind
colors: {
  custom: {
    50: '#8b607a',
    500: '#5a2147',
    950: '#000000',
  },
}
SCSS
$custom: #5a2147;
$custom-light: #8b607a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2147",
  "rgb": {
    "r": 90,
    "g": 33,
    "b": 71
  },
  "hsl": {
    "h": 320,
    "s": 46.341,
    "l": 24.118
  },
  "oklch": {
    "l": 0.34643,
    "c": 0.09716,
    "h": 342.6
  },
  "luminance": 0.03716
}

Semantic roles & 50–950 ramp

primary
#5A2147
secondary
#498E60
accent
#D67E52
background
#F8F5F7
surface
#F0EAED
border
#CBC6C8
text
#0C0509
muted
#7D797B

Preview Lab

Preview with #5A2147

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

Preview Lab → · Contrast checker → · Palette generator →

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