#5A122B#5A122B

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

Color values

HEX#5A122B
RGBrgb(90, 18, 43)
HSLhsl(339, 67%, 21%)
HSVhsv(339, 80%, 35%)
CMYKcmyk(0%, 80%, 52.2%, 64.7%)
CIE-LABlab(19.15, 34.21, 3.26)
CIE-LCHlch(19.15, 34.36, 5.44°)
OKLaboklab(31.66% 0.1046 0.0087)
OKLCHoklch(31.66% 0.105 4.7)
XYZxyz(4.8692, 2.7813, 2.5655)
Luminance0.0278 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A122B #125A41
analogous
#5A124F #5A122B #5A1D12
triadic
#5A122B #2B5A12 #122B5A
tetradic
#5A122B #4F5A12 #125A41 #1D125A
square
#5A122B #4F5A12 #125A41 #1D125A
split-complementary
#5A122B #125A1D #124F5A
monochromatic
#1A050C #270813 #5A122B #8D1C43 #C0265C

Accessibility & contrast

On white

13.49
#5A122B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A122B
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A122B#FFFFFF#000000##FFFFFF
##5A122B1.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23252C
Deuteranopia (green-blind)
#363429
Tritanopia (blue-blind)
#63041D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #5a122b;
/* rgb */ color: rgb(90, 18, 43);
/* oklch */ color: oklch(31.7% 0.105 4.7);
Tailwind
colors: {
  custom: {
    50: '#8d5764',
    500: '#5a122b',
    950: '#000000',
  },
}
SCSS
$custom: #5a122b;
$custom-light: #8d5764;
$custom-dark: #000000;
JSON
{
  "hex": "#5a122b",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 43
  },
  "hsl": {
    "h": 339.167,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.31661,
    "c": 0.10497,
    "h": 4.7
  },
  "luminance": 0.02781
}

Semantic roles & 50–950 ramp

primary
#5A122B
secondary
#359372
accent
#EAAE3E
background
#F9F5F5
surface
#F1E9EA
border
#CBC5C6
text
#0D0305
muted
#7E7879

Preview Lab

Preview with #5A122B

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

Preview Lab → · Contrast checker → · Palette generator →

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