#5A1229#5A1229

#5A1229 is a dark, moderate pink. Relative luminance 0.028; OKLCH L 31.6% C 0.104 H 6.6°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#5A1229
RGBrgb(90, 18, 41)
HSLhsl(341, 67%, 21%)
HSVhsv(341, 80%, 35%)
CMYKcmyk(0%, 80%, 54.4%, 64.7%)
CIE-LABlab(19.09, 34.01, 4.60)
CIE-LCHlch(19.09, 34.32, 7.69°)
OKLaboklab(31.6% 0.1038 0.012)
OKLCHoklch(31.6% 0.104 6.6)
XYZxyz(4.8334, 2.7670, 2.3770)
Luminance0.0277 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1229 #125A43
analogous
#5A124D #5A1229 #5A1F12
triadic
#5A1229 #295A12 #12295A
tetradic
#5A1229 #4D5A12 #125A43 #1F125A
square
#5A1229 #4D5A12 #125A43 #1F125A
split-complementary
#5A1229 #125A1F #124D5A
monochromatic
#1A050C #270812 #5A1229 #8D1C40 #C02657

Accessibility & contrast

On white

13.52
#5A1229 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#5A1229 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1229
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1229#FFFFFF#000000##FFFFFF
##5A12291.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#242529
Deuteranopia (green-blind)
#373427
Tritanopia (blue-blind)
#63031C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #5a1229;
/* rgb */ color: rgb(90, 18, 41);
/* oklch */ color: oklch(31.6% 0.104 6.6);
Tailwind
colors: {
  custom: {
    50: '#8d5762',
    500: '#5a1229',
    950: '#000000',
  },
}
SCSS
$custom: #5a1229;
$custom-light: #8d5762;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1229",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 41
  },
  "hsl": {
    "h": 340.833,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.31597,
    "c": 0.10446,
    "h": 6.6
  },
  "luminance": 0.02766
}

Semantic roles & 50–950 ramp

primary
#5A1229
secondary
#359375
accent
#EAB33E
background
#F9F5F5
surface
#F1E9EA
border
#CBC5C6
text
#0D0305
muted
#7E7879

Preview Lab

Preview with #5A1229

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

Preview Lab → · Contrast checker → · Palette generator →

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