#5A122D#5A122D

#5A122D is a dark, moderate pink. Relative luminance 0.028; OKLCH L 31.7% C 0.106 H 2.9°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#5A122D
RGBrgb(90, 18, 45)
HSLhsl(338, 67%, 21%)
HSVhsv(338, 80%, 35%)
CMYKcmyk(0%, 80%, 50%, 64.7%)
CIE-LABlab(19.21, 34.41, 1.93)
CIE-LCHlch(19.21, 34.47, 3.21°)
OKLaboklab(31.73% 0.1054 0.0053)
OKLCHoklch(31.73% 0.106 2.9)
XYZxyz(4.9068, 2.7964, 2.7635)
Luminance0.0280 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A122D #125A3F
analogous
#5A1251 #5A122D #5A1B12
triadic
#5A122D #2D5A12 #122D5A
tetradic
#5A122D #515A12 #125A3F #1B125A
square
#5A122D #515A12 #125A3F #1B125A
split-complementary
#5A122D #125A1B #12515A
monochromatic
#1A050D #270813 #5A122D #8D1C46 #C02660

Accessibility & contrast

On white

13.47
#5A122D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#5A122D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A122D
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A122D#FFFFFF#000000##FFFFFF
##5A122D1.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23262E
Deuteranopia (green-blind)
#36342B
Tritanopia (blue-blind)
#62051E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #5a122d;
/* rgb */ color: rgb(90, 18, 45);
/* oklch */ color: oklch(31.7% 0.106 2.9);
Tailwind
colors: {
  custom: {
    50: '#8d5765',
    500: '#5a122d',
    950: '#000000',
  },
}
SCSS
$custom: #5a122d;
$custom-light: #8d5765;
$custom-dark: #000000;
JSON
{
  "hex": "#5a122d",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 45
  },
  "hsl": {
    "h": 337.5,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.31728,
    "c": 0.10555,
    "h": 2.9
  },
  "luminance": 0.02796
}

Semantic roles & 50–950 ramp

primary
#5A122D
secondary
#359370
accent
#EAA93E
background
#F9F5F6
surface
#F1E9EB
border
#CBC5C6
text
#0D0305
muted
#7E787A

Preview Lab

Preview with #5A122D

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

Preview Lab → · Contrast checker → · Palette generator →

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