#5A123B#5A123B

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

Color values

HEX#5A123B
RGBrgb(90, 18, 59)
HSLhsl(326, 67%, 21%)
HSVhsv(326, 80%, 35%)
CMYKcmyk(0%, 80%, 34.4%, 64.7%)
CIE-LABlab(19.73, 36.07, -7.16)
CIE-LCHlch(19.73, 36.78, 348.77°)
OKLaboklab(32.28% 0.1103 -0.0186)
OKLCHoklch(32.28% 0.112 350.4)
XYZxyz(5.2225, 2.9226, 4.4259)
Luminance0.0292 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A123B #125A31
analogous
#55125A #5A123B #5A1217
triadic
#5A123B #3B5A12 #123B5A
tetradic
#5A123B #5A5512 #125A31 #12175A
square
#5A123B #5A5512 #125A31 #12175A
split-complementary
#5A123B #175A12 #125A55
monochromatic
#1A0511 #27081A #5A123B #8D1C5C #C0267E

Accessibility & contrast

On white

13.25
#5A123B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A123B
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A123B#FFFFFF#000000##FFFFFF
##5A123B1.0013.251.5813.25
#FFFFFF13.251.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a123b;
/* rgb */ color: rgb(90, 18, 59);
/* oklch */ color: oklch(32.3% 0.112 350.4);
Tailwind
colors: {
  custom: {
    50: '#8c5871',
    500: '#5a123b',
    950: '#000000',
  },
}
SCSS
$custom: #5a123b;
$custom-light: #8c5871;
$custom-dark: #000000;
JSON
{
  "hex": "#5a123b",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 59
  },
  "hsl": {
    "h": 325.833,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32282,
    "c": 0.11187,
    "h": 350.4
  },
  "luminance": 0.02922
}

Semantic roles & 50–950 ramp

primary
#5A123B
secondary
#35935D
accent
#EA883E
background
#F8F5F6
surface
#F0E9EC
border
#CBC5C7
text
#0C0407
muted
#7D797A

Preview Lab

Preview with #5A123B

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

Preview Lab → · Contrast checker → · Palette generator →

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