#5A0E52#5A0E52

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

Color values

HEX#5A0E52
RGBrgb(90, 14, 82)
HSLhsl(306, 73%, 20%)
HSVhsv(306, 84%, 35%)
CMYKcmyk(0%, 84.4%, 8.9%, 64.7%)
CIE-LABlab(20.43, 40.91, -21.88)
CIE-LCHlch(20.43, 46.39, 331.86°)
OKLaboklab(33.17% 0.1182 -0.0601)
OKLCHoklch(33.17% 0.133 333)
XYZxyz(5.8965, 3.0974, 8.2683)
Luminance0.0310 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0E52 #0E5A16
analogous
#3C0E5A #5A0E52 #5A0E2C
triadic
#5A0E52 #525A0E #0E525A
tetradic
#5A0E52 #5A3C0E #0E5A16 #0E2C5A
square
#5A0E52 #5A3C0E #0E5A16 #0E2C5A
split-complementary
#5A0E52 #2C5A0E #0E5A3C
monochromatic
#1A0418 #250622 #5A0E52 #8F1682 #C41EB3

Accessibility & contrast

On white

12.97
#5A0E52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A0E52
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0E52#FFFFFF#000000##FFFFFF
##5A0E521.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2A54
Deuteranopia (green-blind)
#293550
Tritanopia (blue-blind)
#5E1730
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5a0e52;
/* rgb */ color: rgb(90, 14, 82);
/* oklch */ color: oklch(33.2% 0.133 333.0);
Tailwind
colors: {
  custom: {
    50: '#8c5783',
    500: '#5a0e52',
    950: '#000000',
  },
}
SCSS
$custom: #5a0e52;
$custom-light: #8c5783;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0e52",
  "rgb": {
    "r": 90,
    "g": 14,
    "b": 82
  },
  "hsl": {
    "h": 306.316,
    "s": 73.077,
    "l": 20.392
  },
  "oklch": {
    "l": 0.33169,
    "c": 0.13258,
    "h": 333
  },
  "luminance": 0.03097
}

Semantic roles & 50–950 ramp

primary
#5A0E52
secondary
#30943A
accent
#F04B38
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A0E52

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

Preview Lab → · Contrast checker → · Palette generator →

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