#501571#501571

#501571 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.149 H 309.7°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#501571
RGBrgb(80, 21, 113)
HSLhsl(278, 69%, 26%)
HSVhsv(278, 81%, 44%)
CMYKcmyk(29.2%, 81.4%, 0%, 55.7%)
CIE-LABlab(21.71, 42.54, -40.39)
CIE-LCHlch(21.71, 58.66, 316.48°)
OKLaboklab(34.43% 0.0951 -0.1146)
OKLCHoklch(34.43% 0.149 309.7)
XYZxyz(6.5565, 3.4342, 15.9371)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501571 #367115
analogous
#221571 #501571 #711564
triadic
#501571 #715015 #157150
tetradic
#501571 #712215 #367115 #156471
square
#501571 #712215 #367115 #156471
split-complementary
#501571 #647115 #157122
monochromatic
#12051A #2B0B3D #501571 #751FA5 #9929D7

Accessibility & contrast

On white

12.45
#501571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#501571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501571
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501571#FFFFFF#000000##FFFFFF
##5015711.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003274
Deuteranopia (green-blind)
#00356F
Tritanopia (blue-blind)
#4B2C43
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #501571;
/* rgb */ color: rgb(80, 21, 113);
/* oklch */ color: oklch(34.4% 0.149 309.7);
Tailwind
colors: {
  custom: {
    50: '#855a9a',
    500: '#501571',
    950: '#000000',
  },
}
SCSS
$custom: #501571;
$custom-light: #855a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#501571",
  "rgb": {
    "r": 80,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 278.478,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.34426,
    "c": 0.14897,
    "h": 309.7
  },
  "luminance": 0.03434
}

Semantic roles & 50–950 ramp

primary
#501571
secondary
#62A73B
accent
#EB3C7B
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #501571

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

Preview Lab → · Contrast checker → · Palette generator →

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