#5A184F#5A184F

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

Color values

HEX#5A184F
RGBrgb(90, 24, 79)
HSLhsl(310, 58%, 22%)
HSVhsv(310, 73%, 35%)
CMYKcmyk(0%, 73.3%, 12.2%, 64.7%)
CIE-LABlab(21.55, 36.73, -18.10)
CIE-LCHlch(21.55, 40.95, 333.77°)
OKLaboklab(33.92% 0.1071 -0.0493)
OKLCHoklch(33.92% 0.118 335.3)
XYZxyz(5.9544, 3.3919, 7.7367)
Luminance0.0339 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A184F #185A23
analogous
#44185A #5A184F #5A182E
triadic
#5A184F #4F5A18 #184F5A
tetradic
#5A184F #5A4418 #185A23 #182E5A
square
#5A184F #5A4418 #185A23 #182E5A
split-complementary
#5A184F #2E5A18 #185A44
monochromatic
#180615 #2A0B25 #5A184F #8A2579 #BB32A4

Accessibility & contrast

On white

12.51
#5A184F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A184F
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A184F#FFFFFF#000000##FFFFFF
##5A184F1.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182D51
Deuteranopia (green-blind)
#2E374D
Tritanopia (blue-blind)
#5F1D31
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5a184f;
/* rgb */ color: rgb(90, 24, 79);
/* oklch */ color: oklch(33.9% 0.118 335.3);
Tailwind
colors: {
  custom: {
    50: '#8b5b80',
    500: '#5a184f',
    950: '#000000',
  },
}
SCSS
$custom: #5a184f;
$custom-light: #8b5b80;
$custom-dark: #000000;
JSON
{
  "hex": "#5a184f",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 79
  },
  "hsl": {
    "h": 310,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.3392,
    "c": 0.11793,
    "h": 335.3
  },
  "luminance": 0.03391
}

Semantic roles & 50–950 ramp

primary
#5A184F
secondary
#3D914B
accent
#E16047
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A184F

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

Preview Lab → · Contrast checker → · Palette generator →

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