#5A0E50#5A0E50

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

Color values

HEX#5A0E50
RGBrgb(90, 14, 80)
HSLhsl(308, 73%, 20%)
HSVhsv(308, 84%, 35%)
CMYKcmyk(0%, 84.4%, 11.1%, 64.7%)
CIE-LABlab(20.31, 40.58, -20.72)
CIE-LCHlch(20.31, 45.56, 332.95°)
OKLaboklab(33.05% 0.1181 -0.0568)
OKLCHoklch(33.05% 0.131 334.3)
XYZxyz(5.8215, 3.0674, 7.8733)
Luminance0.0307 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0E50 #0E5A18
analogous
#3E0E5A #5A0E50 #5A0E2A
triadic
#5A0E50 #505A0E #0E505A
tetradic
#5A0E50 #5A3E0E #0E5A18 #0E2A5A
square
#5A0E50 #5A3E0E #0E5A18 #0E2A5A
split-complementary
#5A0E50 #2A5A0E #0E5A3E
monochromatic
#1A0418 #250621 #5A0E50 #8F167F #C41EAE

Accessibility & contrast

On white

13.02
#5A0E50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A0E50
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0E50#FFFFFF#000000##FFFFFF
##5A0E501.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a0e50;
/* rgb */ color: rgb(90, 14, 80);
/* oklch */ color: oklch(33.0% 0.131 334.3);
Tailwind
colors: {
  custom: {
    50: '#8c5781',
    500: '#5a0e50',
    950: '#000000',
  },
}
SCSS
$custom: #5a0e50;
$custom-light: #8c5781;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0e50",
  "rgb": {
    "r": 90,
    "g": 14,
    "b": 80
  },
  "hsl": {
    "h": 307.895,
    "s": 73.077,
    "l": 20.392
  },
  "oklch": {
    "l": 0.33046,
    "c": 0.131,
    "h": 334.3
  },
  "luminance": 0.03067
}

Semantic roles & 50–950 ramp

primary
#5A0E50
secondary
#30943D
accent
#F05038
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A0E50

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

Preview Lab → · Contrast checker → · Palette generator →

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