#5A1228#5A1228

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

Color values

HEX#5A1228
RGBrgb(90, 18, 40)
HSLhsl(342, 67%, 21%)
HSVhsv(342, 80%, 35%)
CMYKcmyk(0%, 80%, 55.6%, 64.7%)
CIE-LABlab(19.06, 33.92, 5.27)
CIE-LCHlch(19.06, 34.32, 8.83°)
OKLaboklab(31.57% 0.1033 0.0136)
OKLCHoklch(31.57% 0.104 7.5)
XYZxyz(4.8162, 2.7601, 2.2862)
Luminance0.0276 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1228 #125A44
analogous
#5A124C #5A1228 #5A2012
triadic
#5A1228 #285A12 #12285A
tetradic
#5A1228 #4C5A12 #125A44 #20125A
square
#5A1228 #4C5A12 #125A44 #20125A
split-complementary
#5A1228 #125A20 #124C5A
monochromatic
#1A050B #270811 #5A1228 #8D1C3F #C02655

Accessibility & contrast

On white

13.53
#5A1228 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1228
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1228#FFFFFF#000000##FFFFFF
##5A12281.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#242528
Deuteranopia (green-blind)
#373326
Tritanopia (blue-blind)
#63021B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #5a1228;
/* rgb */ color: rgb(90, 18, 40);
/* oklch */ color: oklch(31.6% 0.104 7.5);
Tailwind
colors: {
  custom: {
    50: '#8d5761',
    500: '#5a1228',
    950: '#000000',
  },
}
SCSS
$custom: #5a1228;
$custom-light: #8d5761;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1228",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 40
  },
  "hsl": {
    "h": 341.667,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.31566,
    "c": 0.10423,
    "h": 7.5
  },
  "luminance": 0.02759
}

Semantic roles & 50–950 ramp

primary
#5A1228
secondary
#359376
accent
#EAB53E
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0305
muted
#7E7879

Preview Lab

Preview with #5A1228

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

Preview Lab → · Contrast checker → · Palette generator →

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