#5A1355#5A1355

#5A1355 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.8% C 0.129 H 331.1°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#5A1355
RGBrgb(90, 19, 85)
HSLhsl(304, 65%, 21%)
HSVhsv(304, 79%, 35%)
CMYKcmyk(0%, 78.9%, 5.6%, 64.7%)
CIE-LABlab(21.19, 39.76, -22.70)
CIE-LCHlch(21.19, 45.78, 330.28°)
OKLaboklab(33.77% 0.1134 -0.0625)
OKLCHoklch(33.77% 0.129 331.1)
XYZxyz(6.0890, 3.2958, 8.9080)
Luminance0.0330 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1355 #135A18
analogous
#3C135A #5A1355 #5A1332
triadic
#5A1355 #555A13 #13555A
tetradic
#5A1355 #5A3C13 #135A18 #13325A
square
#5A1355 #5A3C13 #135A18 #13325A
split-complementary
#5A1355 #325A13 #135A3C
monochromatic
#190518 #270825 #5A1355 #8D1E85 #BF28B4

Accessibility & contrast

On white

12.66
#5A1355 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#5A1355 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1355
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1355#FFFFFF#000000##FFFFFF
##5A13551.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2D57
Deuteranopia (green-blind)
#293653
Tritanopia (blue-blind)
#5E1C33
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5a1355;
/* rgb */ color: rgb(90, 19, 85);
/* oklch */ color: oklch(33.8% 0.129 331.1);
Tailwind
colors: {
  custom: {
    50: '#8b5985',
    500: '#5a1355',
    950: '#000000',
  },
}
SCSS
$custom: #5a1355;
$custom-light: #8b5985;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1355",
  "rgb": {
    "r": 90,
    "g": 19,
    "b": 85
  },
  "hsl": {
    "h": 304.225,
    "s": 65.138,
    "l": 21.373
  },
  "oklch": {
    "l": 0.33772,
    "c": 0.12949,
    "h": 331.1
  },
  "luminance": 0.03295
}

Semantic roles & 50–950 ramp

primary
#5A1355
secondary
#37923D
accent
#E84C40
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5A1355

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

Preview Lab → · Contrast checker → · Palette generator →

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