#5A1127#5A1127

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

Color values

HEX#5A1127
RGBrgb(90, 17, 39)
HSLhsl(342, 68%, 21%)
HSVhsv(342, 81%, 35%)
CMYKcmyk(0%, 81.1%, 56.7%, 64.7%)
CIE-LABlab(18.89, 34.20, 5.75)
CIE-LCHlch(18.89, 34.68, 9.54°)
OKLaboklab(31.44% 0.1041 0.0148)
OKLCHoklch(31.44% 0.105 8.1)
XYZxyz(4.7835, 2.7217, 2.1925)
Luminance0.0272 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1127 #115A44
analogous
#5A114B #5A1127 #5A1F11
triadic
#5A1127 #275A11 #11275A
tetradic
#5A1127 #4B5A11 #115A44 #1F115A
square
#5A1127 #4B5A11 #115A44 #1F115A
split-complementary
#5A1127 #115A1F #114B5A
monochromatic
#1A050B #270711 #5A1127 #8D1B3D #C12454

Accessibility & contrast

On white

13.60
#5A1127 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1127
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1127#FFFFFF#000000##FFFFFF
##5A11271.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#242527
Deuteranopia (green-blind)
#373325
Tritanopia (blue-blind)
#63011A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #5a1127;
/* rgb */ color: rgb(90, 17, 39);
/* oklch */ color: oklch(31.4% 0.105 8.1);
Tailwind
colors: {
  custom: {
    50: '#8d5760',
    500: '#5a1127',
    950: '#000000',
  },
}
SCSS
$custom: #5a1127;
$custom-light: #8d5760;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1127",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 39
  },
  "hsl": {
    "h": 341.918,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.31436,
    "c": 0.10517,
    "h": 8.1
  },
  "luminance": 0.02721
}

Semantic roles & 50–950 ramp

primary
#5A1127
secondary
#349376
accent
#EBB73D
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0305
muted
#7E7879

Preview Lab

Preview with #5A1127

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

Preview Lab → · Contrast checker → · Palette generator →

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