#5A123E#5A123E

#5A123E is a dark, moderate pink. Relative luminance 0.030; OKLCH L 32.4% C 0.114 H 347.9°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#5A123E
RGBrgb(90, 18, 62)
HSLhsl(323, 67%, 21%)
HSVhsv(323, 80%, 35%)
CMYKcmyk(0%, 80%, 31.1%, 64.7%)
CIE-LABlab(19.86, 36.48, -9.05)
CIE-LCHlch(19.86, 37.58, 346.06°)
OKLaboklab(32.42% 0.1111 -0.0238)
OKLCHoklch(32.42% 0.114 347.9)
XYZxyz(5.3025, 2.9547, 4.8476)
Luminance0.0295 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A123E #125A2E
analogous
#52125A #5A123E #5A121A
triadic
#5A123E #3E5A12 #123E5A
tetradic
#5A123E #5A5212 #125A2E #121A5A
square
#5A123E #5A5212 #125A2E #121A5A
split-complementary
#5A123E #1A5A12 #125A52
monochromatic
#1A0512 #27081B #5A123E #8D1C61 #C02684

Accessibility & contrast

On white

13.20
#5A123E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A123E
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A123E#FFFFFF#000000##FFFFFF
##5A123E1.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D283F
Deuteranopia (green-blind)
#32353C
Tritanopia (blue-blind)
#610F26
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5a123e;
/* rgb */ color: rgb(90, 18, 62);
/* oklch */ color: oklch(32.4% 0.114 347.9);
Tailwind
colors: {
  custom: {
    50: '#8c5873',
    500: '#5a123e',
    950: '#000000',
  },
}
SCSS
$custom: #5a123e;
$custom-light: #8c5873;
$custom-dark: #000000;
JSON
{
  "hex": "#5a123e",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 62
  },
  "hsl": {
    "h": 323.333,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.3242,
    "c": 0.11365,
    "h": 347.9
  },
  "luminance": 0.02954
}

Semantic roles & 50–950 ramp

primary
#5A123E
secondary
#35935A
accent
#EA813E
background
#F8F5F6
surface
#F0E9EC
border
#CBC5C7
text
#0C0408
muted
#7D797B

Preview Lab

Preview with #5A123E

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

Preview Lab → · Contrast checker → · Palette generator →

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