#5A1353#5A1353

#5A1353 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.6% C 0.128 H 332.4°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#5A1353
RGBrgb(90, 19, 83)
HSLhsl(306, 65%, 21%)
HSVhsv(306, 79%, 35%)
CMYKcmyk(0%, 78.9%, 7.8%, 64.7%)
CIE-LABlab(21.07, 39.41, -21.54)
CIE-LCHlch(21.07, 44.91, 331.34°)
OKLaboklab(33.65% 0.1133 -0.0592)
OKLCHoklch(33.65% 0.128 332.4)
XYZxyz(6.0107, 3.2644, 8.4955)
Luminance0.0326 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1353 #135A1A
analogous
#3E135A #5A1353 #5A1330
triadic
#5A1353 #535A13 #13535A
tetradic
#5A1353 #5A3E13 #135A1A #13305A
square
#5A1353 #5A3E13 #135A1A #13305A
split-complementary
#5A1353 #305A13 #135A3E
monochromatic
#190517 #270824 #5A1353 #8D1E82 #BF28B0

Accessibility & contrast

On white

12.71
#5A1353 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1353
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1353#FFFFFF#000000##FFFFFF
##5A13531.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2C55
Deuteranopia (green-blind)
#2A3651
Tritanopia (blue-blind)
#5E1B31
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5a1353;
/* rgb */ color: rgb(90, 19, 83);
/* oklch */ color: oklch(33.6% 0.128 332.4);
Tailwind
colors: {
  custom: {
    50: '#8b5983',
    500: '#5a1353',
    950: '#000000',
  },
}
SCSS
$custom: #5a1353;
$custom-light: #8b5983;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1353",
  "rgb": {
    "r": 90,
    "g": 19,
    "b": 83
  },
  "hsl": {
    "h": 305.915,
    "s": 65.138,
    "l": 21.373
  },
  "oklch": {
    "l": 0.33649,
    "c": 0.12783,
    "h": 332.4
  },
  "luminance": 0.03264
}

Semantic roles & 50–950 ramp

primary
#5A1353
secondary
#379240
accent
#E85040
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A1353

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

Preview Lab → · Contrast checker → · Palette generator →

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