#5A0D50#5A0D50

#5A0D50 is a dark, vivid purple. Relative luminance 0.030; OKLCH L 33.0% C 0.132 H 334.3°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#5A0D50
RGBrgb(90, 13, 80)
HSLhsl(308, 75%, 20%)
HSVhsv(308, 86%, 35%)
CMYKcmyk(0%, 85.6%, 11.1%, 64.7%)
CIE-LABlab(20.21, 40.87, -20.88)
CIE-LCHlch(20.21, 45.90, 332.94°)
OKLaboklab(32.97% 0.119 -0.0572)
OKLCHoklch(32.97% 0.132 334.3)
XYZxyz(5.8084, 3.0412, 7.8690)
Luminance0.0304 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0D50 #0D5A17
analogous
#3D0D5A #5A0D50 #5A0D2A
triadic
#5A0D50 #505A0D #0D505A
tetradic
#5A0D50 #5A3D0D #0D5A17 #0D2A5A
square
#5A0D50 #5A3D0D #0D5A17 #0D2A5A
split-complementary
#5A0D50 #2A5A0D #0D5A3D
monochromatic
#1B0418 #250520 #5A0D50 #8F1580 #C51CAF

Accessibility & contrast

On white

13.06
#5A0D50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#5A0D50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A0D50
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0D50#FFFFFF#000000##FFFFFF
##5A0D501.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2A52
Deuteranopia (green-blind)
#2A354E
Tritanopia (blue-blind)
#5F152E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5a0d50;
/* rgb */ color: rgb(90, 13, 80);
/* oklch */ color: oklch(33.0% 0.132 334.3);
Tailwind
colors: {
  custom: {
    50: '#8c5781',
    500: '#5a0d50',
    950: '#000000',
  },
}
SCSS
$custom: #5a0d50;
$custom-light: #8c5781;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0d50",
  "rgb": {
    "r": 90,
    "g": 13,
    "b": 80
  },
  "hsl": {
    "h": 307.792,
    "s": 74.757,
    "l": 20.196
  },
  "oklch": {
    "l": 0.32972,
    "c": 0.13201,
    "h": 334.3
  },
  "luminance": 0.03041
}

Semantic roles & 50–950 ramp

primary
#5A0D50
secondary
#2E943C
accent
#F14F36
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A0D50

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

Preview Lab → · Contrast checker → · Palette generator →

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