#5A122E#5A122E

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

Color values

HEX#5A122E
RGBrgb(90, 18, 46)
HSLhsl(337, 67%, 21%)
HSVhsv(337, 80%, 35%)
CMYKcmyk(0%, 80%, 48.9%, 64.7%)
CIE-LABlab(19.24, 34.52, 1.27)
CIE-LCHlch(19.24, 34.54, 2.10°)
OKLaboklab(31.76% 0.1058 0.0036)
OKLCHoklch(31.76% 0.106 2)
XYZxyz(4.9263, 2.8042, 2.8661)
Luminance0.0280 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A122E #125A3E
analogous
#5A1252 #5A122E #5A1A12
triadic
#5A122E #2E5A12 #122E5A
tetradic
#5A122E #525A12 #125A3E #1A125A
square
#5A122E #525A12 #125A3E #1A125A
split-complementary
#5A122E #125A1A #12525A
monochromatic
#1A050D #270814 #5A122E #8D1C48 #C02662

Accessibility & contrast

On white

13.45
#5A122E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A122E
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A122E#FFFFFF#000000##FFFFFF
##5A122E1.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22262F
Deuteranopia (green-blind)
#36342C
Tritanopia (blue-blind)
#62051E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #5a122e;
/* rgb */ color: rgb(90, 18, 46);
/* oklch */ color: oklch(31.8% 0.106 2.0);
Tailwind
colors: {
  custom: {
    50: '#8d5766',
    500: '#5a122e',
    950: '#000000',
  },
}
SCSS
$custom: #5a122e;
$custom-light: #8d5766;
$custom-dark: #000000;
JSON
{
  "hex": "#5a122e",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 46
  },
  "hsl": {
    "h": 336.667,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.31763,
    "c": 0.10588,
    "h": 2
  },
  "luminance": 0.02804
}

Semantic roles & 50–950 ramp

primary
#5A122E
secondary
#35936E
accent
#EAA73E
background
#F9F5F6
surface
#F1E9EB
border
#CBC5C6
text
#0D0305
muted
#7E787A

Preview Lab

Preview with #5A122E

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

Preview Lab → · Contrast checker → · Palette generator →

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