#5A184E#5A184E

#5A184E is a dark, moderate pink. Relative luminance 0.034; OKLCH L 33.9% C 0.117 H 336.0°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#5A184E
RGBrgb(90, 24, 78)
HSLhsl(311, 58%, 22%)
HSVhsv(311, 73%, 35%)
CMYKcmyk(0%, 73.3%, 13.3%, 64.7%)
CIE-LABlab(21.50, 36.56, -17.50)
CIE-LCHlch(21.50, 40.53, 334.41°)
OKLaboklab(33.86% 0.107 -0.0476)
OKLCHoklch(33.86% 0.117 336)
XYZxyz(5.9183, 3.3775, 7.5465)
Luminance0.0338 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A184E #185A24
analogous
#45185A #5A184E #5A182D
triadic
#5A184E #4E5A18 #184E5A
tetradic
#5A184E #5A4518 #185A24 #182D5A
square
#5A184E #5A4518 #185A24 #182D5A
split-complementary
#5A184E #2D5A18 #185A45
monochromatic
#180615 #2A0B24 #5A184E #8A2578 #BB32A2

Accessibility & contrast

On white

12.53
#5A184E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#5A184E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A184E
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A184E#FFFFFF#000000##FFFFFF
##5A184E1.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192D50
Deuteranopia (green-blind)
#2F374C
Tritanopia (blue-blind)
#5F1C30
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5a184e;
/* rgb */ color: rgb(90, 24, 78);
/* oklch */ color: oklch(33.9% 0.117 336.0);
Tailwind
colors: {
  custom: {
    50: '#8b5b7f',
    500: '#5a184e',
    950: '#000000',
  },
}
SCSS
$custom: #5a184e;
$custom-light: #8b5b7f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a184e",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 78
  },
  "hsl": {
    "h": 310.909,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.33864,
    "c": 0.11711,
    "h": 336
  },
  "luminance": 0.03377
}

Semantic roles & 50–950 ramp

primary
#5A184E
secondary
#3D914C
accent
#E16347
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A184E

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

Preview Lab → · Contrast checker → · Palette generator →

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