#5A122C#5A122C

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

Color values

HEX#5A122C
RGBrgb(90, 18, 44)
HSLhsl(338, 67%, 21%)
HSVhsv(338, 80%, 35%)
CMYKcmyk(0%, 80%, 51.1%, 64.7%)
CIE-LABlab(19.18, 34.31, 2.59)
CIE-LCHlch(19.18, 34.41, 4.32°)
OKLaboklab(31.69% 0.105 0.007)
OKLCHoklch(31.69% 0.105 3.8)
XYZxyz(4.8878, 2.7888, 2.6633)
Luminance0.0279 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A122C #125A40
analogous
#5A1250 #5A122C #5A1C12
triadic
#5A122C #2C5A12 #122C5A
tetradic
#5A122C #505A12 #125A40 #1C125A
square
#5A122C #505A12 #125A40 #1C125A
split-complementary
#5A122C #125A1C #12505A
monochromatic
#1A050C #270813 #5A122C #8D1C45 #C0265E

Accessibility & contrast

On white

13.48
#5A122C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A122C
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A122C#FFFFFF#000000##FFFFFF
##5A122C1.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23262D
Deuteranopia (green-blind)
#36342A
Tritanopia (blue-blind)
#62041D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #5a122c;
/* rgb */ color: rgb(90, 18, 44);
/* oklch */ color: oklch(31.7% 0.105 3.8);
Tailwind
colors: {
  custom: {
    50: '#8d5764',
    500: '#5a122c',
    950: '#000000',
  },
}
SCSS
$custom: #5a122c;
$custom-light: #8d5764;
$custom-dark: #000000;
JSON
{
  "hex": "#5a122c",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 44
  },
  "hsl": {
    "h": 338.333,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.31694,
    "c": 0.10525,
    "h": 3.8
  },
  "luminance": 0.02788
}

Semantic roles & 50–950 ramp

primary
#5A122C
secondary
#359371
accent
#EAAC3E
background
#F9F5F6
surface
#F1E9EB
border
#CBC5C6
text
#0D0305
muted
#7E787A

Preview Lab

Preview with #5A122C

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

Preview Lab → · Contrast checker → · Palette generator →

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