#5A182E#5A182E

#5A182E is a dark, moderate pink. Relative luminance 0.030; OKLCH L 32.4% C 0.098 H 4.1°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#5A182E
RGBrgb(90, 24, 46)
HSLhsl(340, 58%, 22%)
HSVhsv(340, 73%, 35%)
CMYKcmyk(0%, 73.3%, 48.9%, 64.7%)
CIE-LABlab(20.14, 32.01, 2.57)
CIE-LCHlch(20.14, 32.12, 4.59°)
OKLaboklab(32.43% 0.0978 0.0069)
OKLCHoklch(32.43% 0.098 4.1)
XYZxyz(5.0366, 3.0248, 2.9029)
Luminance0.0302 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A182E #185A44
analogous
#5A184F #5A182E #5A2318
triadic
#5A182E #2E5A18 #182E5A
tetradic
#5A182E #4F5A18 #185A44 #23185A
square
#5A182E #4F5A18 #185A44 #23185A
split-complementary
#5A182E #185A23 #184F5A
monochromatic
#18060C #2A0B15 #5A182E #8A2547 #BB325F

Accessibility & contrast

On white

13.09
#5A182E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#5A182E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A182E
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A182E#FFFFFF#000000##FFFFFF
##5A182E1.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26282F
Deuteranopia (green-blind)
#38352C
Tritanopia (blue-blind)
#620E21
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5a182e;
/* rgb */ color: rgb(90, 24, 46);
/* oklch */ color: oklch(32.4% 0.098 4.1);
Tailwind
colors: {
  custom: {
    50: '#8c5a66',
    500: '#5a182e',
    950: '#000000',
  },
}
SCSS
$custom: #5a182e;
$custom-light: #8c5a66;
$custom-dark: #000000;
JSON
{
  "hex": "#5a182e",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 46
  },
  "hsl": {
    "h": 340,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.32429,
    "c": 0.09807,
    "h": 4.1
  },
  "luminance": 0.03024
}

Semantic roles & 50–950 ramp

primary
#5A182E
secondary
#3D9175
accent
#E1AE47
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0D0405
muted
#7D797A

Preview Lab

Preview with #5A182E

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

Preview Lab → · Contrast checker → · Palette generator →

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