#5A0D52#5A0D52

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

Color values

HEX#5A0D52
RGBrgb(90, 13, 82)
HSLhsl(306, 75%, 20%)
HSVhsv(306, 86%, 35%)
CMYKcmyk(0%, 85.6%, 8.9%, 64.7%)
CIE-LABlab(20.33, 41.21, -22.05)
CIE-LCHlch(20.33, 46.73, 331.85°)
OKLaboklab(33.1% 0.119 -0.0606)
OKLCHoklch(33.1% 0.134 333)
XYZxyz(5.8834, 3.0712, 8.2640)
Luminance0.0307 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0D52 #0D5A15
analogous
#3C0D5A #5A0D52 #5A0D2B
triadic
#5A0D52 #525A0D #0D525A
tetradic
#5A0D52 #5A3C0D #0D5A15 #0D2B5A
square
#5A0D52 #5A3C0D #0D5A15 #0D2B5A
split-complementary
#5A0D52 #2B5A0D #0D5A3C
monochromatic
#1B0418 #250521 #5A0D52 #8F1583 #C51CB3

Accessibility & contrast

On white

13.01
#5A0D52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A0D52
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0D52#FFFFFF#000000##FFFFFF
##5A0D521.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082A54
Deuteranopia (green-blind)
#293550
Tritanopia (blue-blind)
#5E162F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5a0d52;
/* rgb */ color: rgb(90, 13, 82);
/* oklch */ color: oklch(33.1% 0.134 333.0);
Tailwind
colors: {
  custom: {
    50: '#8c5783',
    500: '#5a0d52',
    950: '#000000',
  },
}
SCSS
$custom: #5a0d52;
$custom-light: #8c5783;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0d52",
  "rgb": {
    "r": 90,
    "g": 13,
    "b": 82
  },
  "hsl": {
    "h": 306.234,
    "s": 74.757,
    "l": 20.196
  },
  "oklch": {
    "l": 0.33095,
    "c": 0.13356,
    "h": 333
  },
  "luminance": 0.03071
}

Semantic roles & 50–950 ramp

primary
#5A0D52
secondary
#2E9439
accent
#F14A36
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A0D52

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

Preview Lab → · Contrast checker → · Palette generator →

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