#5A1352#5A1352

#5A1352 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.6% C 0.127 H 333.1°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#5A1352
RGBrgb(90, 19, 82)
HSLhsl(307, 65%, 21%)
HSVhsv(307, 79%, 35%)
CMYKcmyk(0%, 78.9%, 8.9%, 64.7%)
CIE-LABlab(21.02, 39.23, -20.96)
CIE-LCHlch(21.02, 44.48, 331.89°)
OKLaboklab(33.59% 0.1132 -0.0575)
OKLCHoklch(33.59% 0.127 333.1)
XYZxyz(5.9723, 3.2491, 8.2936)
Luminance0.0325 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1352 #135A1B
analogous
#3F135A #5A1352 #5A132F
triadic
#5A1352 #525A13 #13525A
tetradic
#5A1352 #5A3F13 #135A1B #132F5A
square
#5A1352 #5A3F13 #135A1B #132F5A
split-complementary
#5A1352 #2F5A13 #135A3F
monochromatic
#190517 #270824 #5A1352 #8D1E80 #BF28AE

Accessibility & contrast

On white

12.73
#5A1352 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#5A1352 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1352
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1352#FFFFFF#000000##FFFFFF
##5A13521.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102C54
Deuteranopia (green-blind)
#2B3650
Tritanopia (blue-blind)
#5E1A31
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5a1352;
/* rgb */ color: rgb(90, 19, 82);
/* oklch */ color: oklch(33.6% 0.127 333.1);
Tailwind
colors: {
  custom: {
    50: '#8b5983',
    500: '#5a1352',
    950: '#000000',
  },
}
SCSS
$custom: #5a1352;
$custom-light: #8b5983;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1352",
  "rgb": {
    "r": 90,
    "g": 19,
    "b": 82
  },
  "hsl": {
    "h": 306.761,
    "s": 65.138,
    "l": 21.373
  },
  "oklch": {
    "l": 0.33588,
    "c": 0.12701,
    "h": 333.1
  },
  "luminance": 0.03249
}

Semantic roles & 50–950 ramp

primary
#5A1352
secondary
#379241
accent
#E85340
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A1352

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

Preview Lab → · Contrast checker → · Palette generator →

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