#5A2145#5A2145

#5A2145 is a dark, moderate pink. Relative luminance 0.037; OKLCH L 34.5% C 0.096 H 344.4°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#5A2145
RGBrgb(90, 33, 69)
HSLhsl(322, 46%, 24%)
HSVhsv(322, 63%, 35%)
CMYKcmyk(0%, 63.3%, 23.3%, 64.7%)
CIE-LABlab(22.62, 30.76, -9.66)
CIE-LCHlch(22.62, 32.24, 342.57°)
OKLaboklab(34.55% 0.0922 -0.0256)
OKLCHoklch(34.55% 0.096 344.4)
XYZxyz(5.8347, 3.6916, 6.0343)
Luminance0.0369 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2145 #215A36
analogous
#53215A #5A2145 #5A2129
triadic
#5A2145 #455A21 #21455A
tetradic
#5A2145 #5A5321 #215A36 #21295A
square
#5A2145 #5A5321 #215A36 #21295A
split-complementary
#5A2145 #295A21 #215A53
monochromatic
#160811 #2D1123 #5A2145 #873167 #B4428A

Accessibility & contrast

On white

12.08
#5A2145 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A2145
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2145#FFFFFF#000000##FFFFFF
##5A21451.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#263046
Deuteranopia (green-blind)
#363A44
Tritanopia (blue-blind)
#602130
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5a2145;
/* rgb */ color: rgb(90, 33, 69);
/* oklch */ color: oklch(34.5% 0.096 344.4);
Tailwind
colors: {
  custom: {
    50: '#8b6078',
    500: '#5a2145',
    950: '#000000',
  },
}
SCSS
$custom: #5a2145;
$custom-light: #8b6078;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2145",
  "rgb": {
    "r": 90,
    "g": 33,
    "b": 69
  },
  "hsl": {
    "h": 322.105,
    "s": 46.341,
    "l": 24.118
  },
  "oklch": {
    "l": 0.34549,
    "c": 0.09567,
    "h": 344.4
  },
  "luminance": 0.03691
}

Semantic roles & 50–950 ramp

primary
#5A2145
secondary
#498E62
accent
#D68352
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0509
muted
#7D797B

Preview Lab

Preview with #5A2145

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

Preview Lab → · Contrast checker → · Palette generator →

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