#501581#501581

#501581 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.8% C 0.165 H 303.3°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#501581
RGBrgb(80, 21, 129)
HSLhsl(273, 72%, 29%)
HSVhsv(273, 84%, 51%)
CMYKcmyk(38%, 83.7%, 0%, 49.4%)
CIE-LABlab(23.09, 46.33, -48.35)
CIE-LCHlch(23.09, 66.96, 313.78°)
OKLaboklab(35.82% 0.0907 -0.138)
OKLCHoklch(35.82% 0.165 303.3)
XYZxyz(7.5379, 3.8268, 21.1061)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501581 #468115
analogous
#1A1581 #501581 #81157C
triadic
#501581 #815015 #158150
tetradic
#501581 #811A15 #468115 #157C81
square
#501581 #811A15 #468115 #157C81
split-complementary
#501581 #7C8115 #15811A
monochromatic
#10041A #2F0C4C #501581 #711EB6 #9033DE

Accessibility & contrast

On white

11.90
#501581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#501581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501581
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501581#FFFFFF#000000##FFFFFF
##5015811.0011.901.7711.90
#FFFFFF11.901.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003684
Deuteranopia (green-blind)
#00377F
Tritanopia (blue-blind)
#46334C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #501581;
/* rgb */ color: rgb(80, 21, 129);
/* oklch */ color: oklch(35.8% 0.165 303.3);
Tailwind
colors: {
  custom: {
    50: '#875ba6',
    500: '#501581',
    950: '#000000',
  },
}
SCSS
$custom: #501581;
$custom-light: #875ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#501581",
  "rgb": {
    "r": 80,
    "g": 21,
    "b": 129
  },
  "hsl": {
    "h": 272.778,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35823,
    "c": 0.16514,
    "h": 303.3
  },
  "luminance": 0.03827
}

Semantic roles & 50–950 ramp

primary
#501581
secondary
#73B63C
accent
#EF398B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #501581

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

Preview Lab → · Contrast checker → · Palette generator →

#501581 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva