#5A184B#5A184B

#5A184B is a dark, moderate pink. Relative luminance 0.033; OKLCH L 33.7% C 0.115 H 338.2°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#5A184B
RGBrgb(90, 24, 75)
HSLhsl(314, 58%, 22%)
HSVhsv(314, 73%, 35%)
CMYKcmyk(0%, 73.3%, 16.7%, 64.7%)
CIE-LABlab(21.34, 36.05, -15.71)
CIE-LCHlch(21.34, 39.32, 336.45°)
OKLaboklab(33.7% 0.1065 -0.0425)
OKLCHoklch(33.7% 0.115 338.2)
XYZxyz(5.8132, 3.3355, 6.9929)
Luminance0.0333 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A184B #185A27
analogous
#48185A #5A184B #5A182A
triadic
#5A184B #4B5A18 #184B5A
tetradic
#5A184B #5A4818 #185A27 #182A5A
square
#5A184B #5A4818 #185A27 #182A5A
split-complementary
#5A184B #2A5A18 #185A48
monochromatic
#180614 #2A0B23 #5A184B #8A2573 #BB329C

Accessibility & contrast

On white

12.60
#5A184B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#5A184B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A184B
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A184B#FFFFFF#000000##FFFFFF
##5A184B1.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2D4C
Deuteranopia (green-blind)
#303749
Tritanopia (blue-blind)
#5F1B2F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5a184b;
/* rgb */ color: rgb(90, 24, 75);
/* oklch */ color: oklch(33.7% 0.115 338.2);
Tailwind
colors: {
  custom: {
    50: '#8b5b7d',
    500: '#5a184b',
    950: '#000000',
  },
}
SCSS
$custom: #5a184b;
$custom-light: #8b5b7d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a184b",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 75
  },
  "hsl": {
    "h": 313.636,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.337,
    "c": 0.11469,
    "h": 338.2
  },
  "luminance": 0.03335
}

Semantic roles & 50–950 ramp

primary
#5A184B
secondary
#3D9150
accent
#E16A47
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C0409
muted
#7D797B

Preview Lab

Preview with #5A184B

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

Preview Lab → · Contrast checker → · Palette generator →

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