#5A1241#5A1241

#5A1241 is a dark, moderate pink. Relative luminance 0.030; OKLCH L 32.6% C 0.116 H 345.5°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#5A1241
RGBrgb(90, 18, 65)
HSLhsl(321, 67%, 21%)
HSVhsv(321, 80%, 35%)
CMYKcmyk(0%, 80%, 27.8%, 64.7%)
CIE-LABlab(20.00, 36.90, -10.93)
CIE-LCHlch(20.00, 38.48, 343.50°)
OKLaboklab(32.56% 0.1119 -0.029)
OKLCHoklch(32.56% 0.116 345.5)
XYZxyz(5.3871, 2.9885, 5.2931)
Luminance0.0299 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1241 #125A2B
analogous
#4F125A #5A1241 #5A121D
triadic
#5A1241 #415A12 #12415A
tetradic
#5A1241 #5A4F12 #125A2B #121D5A
square
#5A1241 #5A4F12 #125A2B #121D5A
split-complementary
#5A1241 #1D5A12 #125A4F
monochromatic
#1A0512 #27081C #5A1241 #8D1C66 #C0268B

Accessibility & contrast

On white

13.14
#5A1241 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#5A1241 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1241
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1241#FFFFFF#000000##FFFFFF
##5A12411.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2942
Deuteranopia (green-blind)
#31353F
Tritanopia (blue-blind)
#611127
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5a1241;
/* rgb */ color: rgb(90, 18, 65);
/* oklch */ color: oklch(32.6% 0.116 345.5);
Tailwind
colors: {
  custom: {
    50: '#8c5875',
    500: '#5a1241',
    950: '#000000',
  },
}
SCSS
$custom: #5a1241;
$custom-light: #8c5875;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1241",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 65
  },
  "hsl": {
    "h": 320.833,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32564,
    "c": 0.11556,
    "h": 345.5
  },
  "luminance": 0.02988
}

Semantic roles & 50–950 ramp

primary
#5A1241
secondary
#359356
accent
#EA7A3E
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0408
muted
#7D797B

Preview Lab

Preview with #5A1241

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

Preview Lab → · Contrast checker → · Palette generator →

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