#5A1050#5A1050

#5A1050 is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.2% C 0.129 H 334.3°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#5A1050
RGBrgb(90, 16, 80)
HSLhsl(308, 70%, 21%)
HSVhsv(308, 82%, 35%)
CMYKcmyk(0%, 82.2%, 11.1%, 64.7%)
CIE-LABlab(20.53, 39.94, -20.37)
CIE-LCHlch(20.53, 44.83, 332.98°)
OKLaboklab(33.21% 0.1162 -0.0558)
OKLCHoklch(33.21% 0.129 334.3)
XYZxyz(5.8498, 3.1239, 7.8828)
Luminance0.0312 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1050 #105A1A
analogous
#3F105A #5A1050 #5A102B
triadic
#5A1050 #505A10 #10505A
tetradic
#5A1050 #5A3F10 #105A1A #102B5A
square
#5A1050 #5A3F10 #105A1A #102B5A
split-complementary
#5A1050 #2B5A10 #105A3F
monochromatic
#1A0517 #260722 #5A1050 #8E197E #C222AC

Accessibility & contrast

On white

12.93
#5A1050 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#5A1050 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1050
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1050#FFFFFF#000000##FFFFFF
##5A10501.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2B52
Deuteranopia (green-blind)
#2B354E
Tritanopia (blue-blind)
#5F172F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5a1050;
/* rgb */ color: rgb(90, 16, 80);
/* oklch */ color: oklch(33.2% 0.129 334.3);
Tailwind
colors: {
  custom: {
    50: '#8c5881',
    500: '#5a1050',
    950: '#000000',
  },
}
SCSS
$custom: #5a1050;
$custom-light: #8c5881;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1050",
  "rgb": {
    "r": 90,
    "g": 16,
    "b": 80
  },
  "hsl": {
    "h": 308.108,
    "s": 69.811,
    "l": 20.784
  },
  "oklch": {
    "l": 0.33205,
    "c": 0.12888,
    "h": 334.3
  },
  "luminance": 0.03123
}

Semantic roles & 50–950 ramp

primary
#5A1050
secondary
#339340
accent
#ED533B
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A1050

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

Preview Lab → · Contrast checker → · Palette generator →

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