#5A1350#5A1350

#5A1350 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.5% C 0.125 H 334.4°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#5A1350
RGBrgb(90, 19, 80)
HSLhsl(308, 65%, 21%)
HSVhsv(308, 79%, 35%)
CMYKcmyk(0%, 78.9%, 11.1%, 64.7%)
CIE-LABlab(20.90, 38.89, -19.79)
CIE-LCHlch(20.90, 43.63, 333.03°)
OKLaboklab(33.47% 0.1131 -0.0541)
OKLCHoklch(33.47% 0.125 334.4)
XYZxyz(5.8973, 3.2191, 7.8986)
Luminance0.0322 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1350 #135A1D
analogous
#41135A #5A1350 #5A132D
triadic
#5A1350 #505A13 #13505A
tetradic
#5A1350 #5A4113 #135A1D #132D5A
square
#5A1350 #5A4113 #135A1D #132D5A
split-complementary
#5A1350 #2D5A13 #135A41
monochromatic
#190516 #270823 #5A1350 #8D1E7D #BF28AA

Accessibility & contrast

On white

12.78
#5A1350 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#5A1350 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1350
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1350#FFFFFF#000000##FFFFFF
##5A13501.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122C52
Deuteranopia (green-blind)
#2C364E
Tritanopia (blue-blind)
#5F1930
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5a1350;
/* rgb */ color: rgb(90, 19, 80);
/* oklch */ color: oklch(33.5% 0.125 334.4);
Tailwind
colors: {
  custom: {
    50: '#8b5981',
    500: '#5a1350',
    950: '#000000',
  },
}
SCSS
$custom: #5a1350;
$custom-light: #8b5981;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1350",
  "rgb": {
    "r": 90,
    "g": 19,
    "b": 80
  },
  "hsl": {
    "h": 308.451,
    "s": 65.138,
    "l": 21.373
  },
  "oklch": {
    "l": 0.33469,
    "c": 0.12539,
    "h": 334.4
  },
  "luminance": 0.03219
}

Semantic roles & 50–950 ramp

primary
#5A1350
secondary
#379244
accent
#E85740
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A1350

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

Preview Lab → · Contrast checker → · Palette generator →

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