#5A0D4F#5A0D4F

#5A0D4F is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.9% C 0.131 H 335.0°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#5A0D4F
RGBrgb(90, 13, 79)
HSLhsl(309, 75%, 20%)
HSVhsv(309, 86%, 35%)
CMYKcmyk(0%, 85.6%, 12.2%, 64.7%)
CIE-LABlab(20.15, 40.71, -20.29)
CIE-LCHlch(20.15, 45.49, 333.51°)
OKLaboklab(32.91% 0.1189 -0.0555)
OKLCHoklch(32.91% 0.131 335)
XYZxyz(5.7717, 3.0266, 7.6758)
Luminance0.0303 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0D4F #0D5A18
analogous
#3E0D5A #5A0D4F #5A0D29
triadic
#5A0D4F #4F5A0D #0D4F5A
tetradic
#5A0D4F #5A3E0D #0D5A18 #0D295A
square
#5A0D4F #5A3E0D #0D5A18 #0D295A
split-complementary
#5A0D4F #295A0D #0D5A3E
monochromatic
#1B0417 #250520 #5A0D4F #8F157E #C51CAD

Accessibility & contrast

On white

13.08
#5A0D4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A0D4F
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0D4F#FFFFFF#000000##FFFFFF
##5A0D4F1.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a0d4f;
/* rgb */ color: rgb(90, 13, 79);
/* oklch */ color: oklch(32.9% 0.131 335.0);
Tailwind
colors: {
  custom: {
    50: '#8c5780',
    500: '#5a0d4f',
    950: '#000000',
  },
}
SCSS
$custom: #5a0d4f;
$custom-light: #8c5780;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0d4f",
  "rgb": {
    "r": 90,
    "g": 13,
    "b": 79
  },
  "hsl": {
    "h": 308.571,
    "s": 74.757,
    "l": 20.196
  },
  "oklch": {
    "l": 0.32911,
    "c": 0.13123,
    "h": 335
  },
  "luminance": 0.03026
}

Semantic roles & 50–950 ramp

primary
#5A0D4F
secondary
#2E943D
accent
#F15136
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C030A
muted
#7D787C

Preview Lab

Preview with #5A0D4F

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

Preview Lab → · Contrast checker → · Palette generator →

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