#5A1841#5A1841

#5A1841 is a dark, moderate pink. Relative luminance 0.032; OKLCH L 33.2% C 0.107 H 346.3°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#5A1841
RGBrgb(90, 24, 65)
HSLhsl(323, 58%, 22%)
HSVhsv(323, 73%, 35%)
CMYKcmyk(0%, 73.3%, 27.8%, 64.7%)
CIE-LABlab(20.86, 34.47, -9.60)
CIE-LCHlch(20.86, 35.79, 344.43°)
OKLaboklab(33.2% 0.1044 -0.0254)
OKLCHoklch(33.2% 0.107 346.3)
XYZxyz(5.4974, 3.2092, 5.3299)
Luminance0.0321 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1841 #185A31
analogous
#52185A #5A1841 #5A1820
triadic
#5A1841 #415A18 #18415A
tetradic
#5A1841 #5A5218 #185A31 #18205A
square
#5A1841 #5A5218 #185A31 #18205A
split-complementary
#5A1841 #205A18 #185A52
monochromatic
#180611 #2A0B1E #5A1841 #8A2564 #BB3287

Accessibility & contrast

On white

12.79
#5A1841 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#5A1841 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1841
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1841#FFFFFF#000000##FFFFFF
##5A18411.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202B42
Deuteranopia (green-blind)
#33363F
Tritanopia (blue-blind)
#60162A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5a1841;
/* rgb */ color: rgb(90, 24, 65);
/* oklch */ color: oklch(33.2% 0.107 346.3);
Tailwind
colors: {
  custom: {
    50: '#8b5b75',
    500: '#5a1841',
    950: '#000000',
  },
}
SCSS
$custom: #5a1841;
$custom-light: #8b5b75;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1841",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 65
  },
  "hsl": {
    "h": 322.727,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.33195,
    "c": 0.1074,
    "h": 346.3
  },
  "luminance": 0.03209
}

Semantic roles & 50–950 ramp

primary
#5A1841
secondary
#3D915D
accent
#E18147
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0408
muted
#7D797B

Preview Lab

Preview with #5A1841

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

Preview Lab → · Contrast checker → · Palette generator →

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