#5A1226#5A1226

#5A1226 is a dark, moderate pink. Relative luminance 0.027; OKLCH L 31.5% C 0.104 H 9.3°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#5A1226
RGBrgb(90, 18, 38)
HSLhsl(343, 67%, 21%)
HSVhsv(343, 80%, 35%)
CMYKcmyk(0%, 80%, 57.8%, 64.7%)
CIE-LABlab(19.00, 33.73, 6.61)
CIE-LCHlch(19.00, 34.37, 11.09°)
OKLaboklab(31.51% 0.1025 0.0168)
OKLCHoklch(31.51% 0.104 9.3)
XYZxyz(4.7830, 2.7469, 2.1117)
Luminance0.0275 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1226 #125A46
analogous
#5A124A #5A1226 #5A2212
triadic
#5A1226 #265A12 #12265A
tetradic
#5A1226 #4A5A12 #125A46 #22125A
square
#5A1226 #4A5A12 #125A46 #22125A
split-complementary
#5A1226 #125A22 #124A5A
monochromatic
#1A050B #270810 #5A1226 #8D1C3C #C02651

Accessibility & contrast

On white

13.56
#5A1226 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1226
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1226#FFFFFF#000000##FFFFFF
##5A12261.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#242526
Deuteranopia (green-blind)
#373324
Tritanopia (blue-blind)
#63021A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #5a1226;
/* rgb */ color: rgb(90, 18, 38);
/* oklch */ color: oklch(31.5% 0.104 9.3);
Tailwind
colors: {
  custom: {
    50: '#8d5760',
    500: '#5a1226',
    950: '#000000',
  },
}
SCSS
$custom: #5a1226;
$custom-light: #8d5760;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1226",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 38
  },
  "hsl": {
    "h": 343.333,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.31506,
    "c": 0.10385,
    "h": 9.3
  },
  "luminance": 0.02746
}

Semantic roles & 50–950 ramp

primary
#5A1226
secondary
#359379
accent
#EABA3E
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0304
muted
#7E7879

Preview Lab

Preview with #5A1226

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

Preview Lab → · Contrast checker → · Palette generator →

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