#5A1B4E#5A1B4E

#5A1B4E is a dark, moderate pink. Relative luminance 0.035; OKLCH L 34.2% C 0.113 H 336.1°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#5A1B4E
RGBrgb(90, 27, 78)
HSLhsl(311, 54%, 23%)
HSVhsv(311, 70%, 35%)
CMYKcmyk(0%, 70%, 13.3%, 64.7%)
CIE-LABlab(21.97, 35.23, -16.76)
CIE-LCHlch(21.97, 39.01, 334.55°)
OKLaboklab(34.21% 0.103 -0.0456)
OKLCHoklch(34.21% 0.113 336.1)
XYZxyz(5.9836, 3.5081, 7.5682)
Luminance0.0351 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1B4E #1B5A27
analogous
#461B5A #5A1B4E #5A1B2E
triadic
#5A1B4E #4E5A1B #1B4E5A
tetradic
#5A1B4E #5A461B #1B5A27 #1B2E5A
square
#5A1B4E #5A461B #1B5A27 #1B2E5A
split-complementary
#5A1B4E #2E5A1B #1B5A46
monochromatic
#180714 #2B0D25 #5A1B4E #892977 #B837A0

Accessibility & contrast

On white

12.34
#5A1B4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#5A1B4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1B4E
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1B4E#FFFFFF#000000##FFFFFF
##5A1B4E1.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C2F50
Deuteranopia (green-blind)
#30384C
Tritanopia (blue-blind)
#5F1F31
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5a1b4e;
/* rgb */ color: rgb(90, 27, 78);
/* oklch */ color: oklch(34.2% 0.113 336.1);
Tailwind
colors: {
  custom: {
    50: '#8b5d7f',
    500: '#5a1b4e',
    950: '#000000',
  },
}
SCSS
$custom: #5a1b4e;
$custom-light: #8b5d7f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1b4e",
  "rgb": {
    "r": 90,
    "g": 27,
    "b": 78
  },
  "hsl": {
    "h": 311.429,
    "s": 53.846,
    "l": 22.941
  },
  "oklch": {
    "l": 0.34211,
    "c": 0.11265,
    "h": 336.1
  },
  "luminance": 0.03508
}

Semantic roles & 50–950 ramp

primary
#5A1B4E
secondary
#419050
accent
#DD674B
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A1B4E

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

Preview Lab → · Contrast checker → · Palette generator →

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