#5A194E#5A194E

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

Color values

HEX#5A194E
RGBrgb(90, 25, 78)
HSLhsl(311, 57%, 23%)
HSVhsv(311, 72%, 35%)
CMYKcmyk(0%, 72.2%, 13.3%, 64.7%)
CIE-LABlab(21.65, 36.12, -17.26)
CIE-LCHlch(21.65, 40.04, 334.46°)
OKLaboklab(33.98% 0.1057 -0.047)
OKLCHoklch(33.98% 0.116 336)
XYZxyz(5.9393, 3.4195, 7.5535)
Luminance0.0342 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A194E #195A25
analogous
#46195A #5A194E #5A192D
triadic
#5A194E #4E5A19 #194E5A
tetradic
#5A194E #5A4619 #195A25 #192D5A
square
#5A194E #5A4619 #195A25 #192D5A
split-complementary
#5A194E #2D5A19 #195A46
monochromatic
#180715 #2A0C24 #5A194E #8A2678 #BA34A1

Accessibility & contrast

On white

12.47
#5A194E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A194E
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A194E#FFFFFF#000000##FFFFFF
##5A194E1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2E50
Deuteranopia (green-blind)
#2F374C
Tritanopia (blue-blind)
#5F1D31
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5a194e;
/* rgb */ color: rgb(90, 25, 78);
/* oklch */ color: oklch(34.0% 0.116 336.0);
Tailwind
colors: {
  custom: {
    50: '#8b5c7f',
    500: '#5a194e',
    950: '#000000',
  },
}
SCSS
$custom: #5a194e;
$custom-light: #8b5c7f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a194e",
  "rgb": {
    "r": 90,
    "g": 25,
    "b": 78
  },
  "hsl": {
    "h": 311.077,
    "s": 56.522,
    "l": 22.549
  },
  "oklch": {
    "l": 0.33977,
    "c": 0.11566,
    "h": 336
  },
  "luminance": 0.03419
}

Semantic roles & 50–950 ramp

primary
#5A194E
secondary
#3E904E
accent
#E06448
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A194E

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

Preview Lab → · Contrast checker → · Palette generator →

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