#5A122F#5A122F

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

Color values

HEX#5A122F
RGBrgb(90, 18, 47)
HSLhsl(336, 67%, 21%)
HSVhsv(336, 80%, 35%)
CMYKcmyk(0%, 80%, 47.8%, 64.7%)
CIE-LABlab(19.28, 34.62, 0.61)
CIE-LCHlch(19.28, 34.63, 1.01°)
OKLaboklab(31.8% 0.1062 0.002)
OKLCHoklch(31.8% 0.106 1.1)
XYZxyz(4.9462, 2.8122, 2.9711)
Luminance0.0281 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A122F #125A3D
analogous
#5A1253 #5A122F #5A1912
triadic
#5A122F #2F5A12 #122F5A
tetradic
#5A122F #535A12 #125A3D #19125A
square
#5A122F #535A12 #125A3D #19125A
split-complementary
#5A122F #125A19 #12535A
monochromatic
#1A050D #270814 #5A122F #8D1C4A #C02664

Accessibility & contrast

On white

13.44
#5A122F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A122F
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A122F#FFFFFF#000000##FFFFFF
##5A122F1.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#222630
Deuteranopia (green-blind)
#36342D
Tritanopia (blue-blind)
#62061E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #5a122f;
/* rgb */ color: rgb(90, 18, 47);
/* oklch */ color: oklch(31.8% 0.106 1.1);
Tailwind
colors: {
  custom: {
    50: '#8d5767',
    500: '#5a122f',
    950: '#000000',
  },
}
SCSS
$custom: #5a122f;
$custom-light: #8d5767;
$custom-dark: #000000;
JSON
{
  "hex": "#5a122f",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 47
  },
  "hsl": {
    "h": 335.833,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.31799,
    "c": 0.10623,
    "h": 1.1
  },
  "luminance": 0.02812
}

Semantic roles & 50–950 ramp

primary
#5A122F
secondary
#35936D
accent
#EAA53E
background
#F9F5F6
surface
#F1E9EB
border
#CBC5C6
text
#0D0306
muted
#7E787A

Preview Lab

Preview with #5A122F

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

Preview Lab → · Contrast checker → · Palette generator →

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