#5A1126#5A1126

#5A1126 is a dark, moderate pink. Relative luminance 0.027; OKLCH L 31.4% C 0.105 H 9.0°. Best body text is #FFFFFF at 13.61:1 contrast (WCAG AA passes).

Color values

HEX#5A1126
RGBrgb(90, 17, 38)
HSLhsl(343, 68%, 21%)
HSVhsv(343, 81%, 35%)
CMYKcmyk(0%, 81.1%, 57.8%, 64.7%)
CIE-LABlab(18.87, 34.11, 6.42)
CIE-LCHlch(18.87, 34.71, 10.66°)
OKLaboklab(31.41% 0.1037 0.0164)
OKLCHoklch(31.41% 0.105 9)
XYZxyz(4.7672, 2.7152, 2.1064)
Luminance0.0271 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1126 #115A45
analogous
#5A114A #5A1126 #5A2011
triadic
#5A1126 #265A11 #11265A
tetradic
#5A1126 #4A5A11 #115A45 #20115A
square
#5A1126 #4A5A11 #115A45 #20115A
split-complementary
#5A1126 #115A20 #114A5A
monochromatic
#1A050B #270710 #5A1126 #8D1B3C #C12451

Accessibility & contrast

On white

13.61
#5A1126 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#5A1126 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1126
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1126#FFFFFF#000000##FFFFFF
##5A11261.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a1126;
/* rgb */ color: rgb(90, 17, 38);
/* oklch */ color: oklch(31.4% 0.105 9.0);
Tailwind
colors: {
  custom: {
    50: '#8d5760',
    500: '#5a1126',
    950: '#000000',
  },
}
SCSS
$custom: #5a1126;
$custom-light: #8d5760;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1126",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 38
  },
  "hsl": {
    "h": 342.74,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.31406,
    "c": 0.10498,
    "h": 9
  },
  "luminance": 0.02714
}

Semantic roles & 50–950 ramp

primary
#5A1126
secondary
#349378
accent
#EBB93D
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0304
muted
#7E7879

Preview Lab

Preview with #5A1126

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

Preview Lab → · Contrast checker → · Palette generator →

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