#5A123A#5A123A

#5A123A is a dark, moderate pink. Relative luminance 0.029; OKLCH L 32.2% C 0.111 H 351.3°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#5A123A
RGBrgb(90, 18, 58)
HSLhsl(327, 67%, 21%)
HSVhsv(327, 80%, 35%)
CMYKcmyk(0%, 80%, 35.6%, 64.7%)
CIE-LABlab(19.69, 35.94, -6.52)
CIE-LCHlch(19.69, 36.53, 349.71°)
OKLaboklab(32.24% 0.11 -0.0169)
OKLCHoklch(32.24% 0.111 351.3)
XYZxyz(5.1968, 2.9124, 4.2906)
Luminance0.0291 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A123A #125A32
analogous
#56125A #5A123A #5A1216
triadic
#5A123A #3A5A12 #123A5A
tetradic
#5A123A #5A5612 #125A32 #12165A
square
#5A123A #5A5612 #125A32 #12165A
split-complementary
#5A123A #165A12 #125A56
monochromatic
#1A0510 #270819 #5A123A #8D1C5B #C0267C

Accessibility & contrast

On white

13.27
#5A123A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#5A123A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A123A
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A123A#FFFFFF#000000##FFFFFF
##5A123A1.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E273B
Deuteranopia (green-blind)
#333438
Tritanopia (blue-blind)
#610D24
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5a123a;
/* rgb */ color: rgb(90, 18, 58);
/* oklch */ color: oklch(32.2% 0.111 351.3);
Tailwind
colors: {
  custom: {
    50: '#8c5870',
    500: '#5a123a',
    950: '#000000',
  },
}
SCSS
$custom: #5a123a;
$custom-light: #8c5870;
$custom-dark: #000000;
JSON
{
  "hex": "#5a123a",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 58
  },
  "hsl": {
    "h": 326.667,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32238,
    "c": 0.11129,
    "h": 351.3
  },
  "luminance": 0.02912
}

Semantic roles & 50–950 ramp

primary
#5A123A
secondary
#35935F
accent
#EA8A3E
background
#F8F5F6
surface
#F0E9EC
border
#CBC5C7
text
#0C0407
muted
#7D797A

Preview Lab

Preview with #5A123A

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

Preview Lab → · Contrast checker → · Palette generator →

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