#5A0E51#5A0E51

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

Color values

HEX#5A0E51
RGBrgb(90, 14, 81)
HSLhsl(307, 73%, 20%)
HSVhsv(307, 84%, 35%)
CMYKcmyk(0%, 84.4%, 10%, 64.7%)
CIE-LABlab(20.37, 40.74, -21.30)
CIE-LCHlch(20.37, 45.97, 332.40°)
OKLaboklab(33.11% 0.1181 -0.0585)
OKLCHoklch(33.11% 0.132 333.7)
XYZxyz(5.8587, 3.0823, 8.0694)
Luminance0.0308 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0E51 #0E5A17
analogous
#3D0E5A #5A0E51 #5A0E2B
triadic
#5A0E51 #515A0E #0E515A
tetradic
#5A0E51 #5A3D0E #0E5A17 #0E2B5A
square
#5A0E51 #5A3D0E #0E5A17 #0E2B5A
split-complementary
#5A0E51 #2B5A0E #0E5A3D
monochromatic
#1A0418 #250621 #5A0E51 #8F1681 #C41EB0

Accessibility & contrast

On white

12.99
#5A0E51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A0E51
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0E51#FFFFFF#000000##FFFFFF
##5A0E511.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2A53
Deuteranopia (green-blind)
#29354F
Tritanopia (blue-blind)
#5F162F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5a0e51;
/* rgb */ color: rgb(90, 14, 81);
/* oklch */ color: oklch(33.1% 0.132 333.7);
Tailwind
colors: {
  custom: {
    50: '#8c5782',
    500: '#5a0e51',
    950: '#000000',
  },
}
SCSS
$custom: #5a0e51;
$custom-light: #8c5782;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0e51",
  "rgb": {
    "r": 90,
    "g": 14,
    "b": 81
  },
  "hsl": {
    "h": 307.105,
    "s": 73.077,
    "l": 20.392
  },
  "oklch": {
    "l": 0.33107,
    "c": 0.13179,
    "h": 333.7
  },
  "luminance": 0.03082
}

Semantic roles & 50–950 ramp

primary
#5A0E51
secondary
#30943C
accent
#F04E38
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A0E51

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

Preview Lab → · Contrast checker → · Palette generator →

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