#5A122A#5A122A

#5A122A is a dark, moderate pink. Relative luminance 0.028; OKLCH L 31.6% C 0.105 H 5.7°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#5A122A
RGBrgb(90, 18, 42)
HSLhsl(340, 67%, 21%)
HSVhsv(340, 80%, 35%)
CMYKcmyk(0%, 80%, 53.3%, 64.7%)
CIE-LABlab(19.12, 34.11, 3.93)
CIE-LCHlch(19.12, 34.33, 6.57°)
OKLaboklab(31.63% 0.1042 0.0103)
OKLCHoklch(31.63% 0.105 5.7)
XYZxyz(4.8511, 2.7741, 2.4700)
Luminance0.0277 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A122A #125A42
analogous
#5A124E #5A122A #5A1E12
triadic
#5A122A #2A5A12 #122A5A
tetradic
#5A122A #4E5A12 #125A42 #1E125A
square
#5A122A #4E5A12 #125A42 #1E125A
split-complementary
#5A122A #125A1E #124E5A
monochromatic
#1A050C #270812 #5A122A #8D1C42 #C0265A

Accessibility & contrast

On white

13.51
#5A122A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#5A122A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A122A
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A122A#FFFFFF#000000##FFFFFF
##5A122A1.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23252B
Deuteranopia (green-blind)
#363428
Tritanopia (blue-blind)
#63031C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #5a122a;
/* rgb */ color: rgb(90, 18, 42);
/* oklch */ color: oklch(31.6% 0.105 5.7);
Tailwind
colors: {
  custom: {
    50: '#8d5763',
    500: '#5a122a',
    950: '#000000',
  },
}
SCSS
$custom: #5a122a;
$custom-light: #8d5763;
$custom-dark: #000000;
JSON
{
  "hex": "#5a122a",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 42
  },
  "hsl": {
    "h": 340,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.31629,
    "c": 0.1047,
    "h": 5.7
  },
  "luminance": 0.02773
}

Semantic roles & 50–950 ramp

primary
#5A122A
secondary
#359373
accent
#EAB03E
background
#F9F5F5
surface
#F1E9EA
border
#CBC5C6
text
#0D0305
muted
#7E7879

Preview Lab

Preview with #5A122A

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

Preview Lab → · Contrast checker → · Palette generator →

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