#5A1357#5A1357

#5A1357 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.9% C 0.131 H 329.9°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#5A1357
RGBrgb(90, 19, 87)
HSLhsl(303, 65%, 21%)
HSVhsv(303, 79%, 35%)
CMYKcmyk(0%, 78.9%, 3.3%, 64.7%)
CIE-LABlab(21.31, 40.12, -23.85)
CIE-LCHlch(21.31, 46.67, 329.27°)
OKLaboklab(33.9% 0.1135 -0.0659)
OKLCHoklch(33.9% 0.131 329.9)
XYZxyz(6.1696, 3.3280, 9.3324)
Luminance0.0333 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1357 #135A16
analogous
#3A135A #5A1357 #5A1334
triadic
#5A1357 #575A13 #13575A
tetradic
#5A1357 #5A3A13 #135A16 #13345A
square
#5A1357 #5A3A13 #135A16 #13345A
split-complementary
#5A1357 #345A13 #135A3A
monochromatic
#190518 #270826 #5A1357 #8D1E88 #BF28B9

Accessibility & contrast

On white

12.61
#5A1357 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1357
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1357#FFFFFF#000000##FFFFFF
##5A13571.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2D59
Deuteranopia (green-blind)
#283655
Tritanopia (blue-blind)
#5E1D34
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5a1357;
/* rgb */ color: rgb(90, 19, 87);
/* oklch */ color: oklch(33.9% 0.131 329.9);
Tailwind
colors: {
  custom: {
    50: '#8b5987',
    500: '#5a1357',
    950: '#000000',
  },
}
SCSS
$custom: #5a1357;
$custom-light: #8b5987;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1357",
  "rgb": {
    "r": 90,
    "g": 19,
    "b": 87
  },
  "hsl": {
    "h": 302.535,
    "s": 65.138,
    "l": 21.373
  },
  "oklch": {
    "l": 0.33898,
    "c": 0.13119,
    "h": 329.9
  },
  "luminance": 0.03328
}

Semantic roles & 50–950 ramp

primary
#5A1357
secondary
#37923A
accent
#E84740
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5A1357

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

Preview Lab → · Contrast checker → · Palette generator →

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