#5A123C#5A123C

#5A123C is a dark, moderate pink. Relative luminance 0.029; OKLCH L 32.3% C 0.112 H 349.6°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#5A123C
RGBrgb(90, 18, 60)
HSLhsl(325, 67%, 21%)
HSVhsv(325, 80%, 35%)
CMYKcmyk(0%, 80%, 33.3%, 64.7%)
CIE-LABlab(19.77, 36.20, -7.79)
CIE-LCHlch(19.77, 37.03, 347.85°)
OKLaboklab(32.33% 0.1106 -0.0204)
OKLCHoklch(32.33% 0.112 349.6)
XYZxyz(5.2486, 2.9331, 4.5638)
Luminance0.0293 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A123C #125A30
analogous
#54125A #5A123C #5A1218
triadic
#5A123C #3C5A12 #123C5A
tetradic
#5A123C #5A5412 #125A30 #12185A
square
#5A123C #5A5412 #125A30 #12185A
split-complementary
#5A123C #185A12 #125A54
monochromatic
#1A0511 #27081A #5A123C #8D1C5E #C02680

Accessibility & contrast

On white

13.24
#5A123C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#5A123C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A123C
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A123C#FFFFFF#000000##FFFFFF
##5A123C1.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E283D
Deuteranopia (green-blind)
#32343A
Tritanopia (blue-blind)
#610E25
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5a123c;
/* rgb */ color: rgb(90, 18, 60);
/* oklch */ color: oklch(32.3% 0.112 349.6);
Tailwind
colors: {
  custom: {
    50: '#8c5871',
    500: '#5a123c',
    950: '#000000',
  },
}
SCSS
$custom: #5a123c;
$custom-light: #8c5871;
$custom-dark: #000000;
JSON
{
  "hex": "#5a123c",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 60
  },
  "hsl": {
    "h": 325,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32327,
    "c": 0.11244,
    "h": 349.6
  },
  "luminance": 0.02933
}

Semantic roles & 50–950 ramp

primary
#5A123C
secondary
#35935C
accent
#EA863E
background
#F8F5F6
surface
#F0E9EC
border
#CBC5C7
text
#0C0407
muted
#7D797A

Preview Lab

Preview with #5A123C

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

Preview Lab → · Contrast checker → · Palette generator →

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