#501371#501371

#501371 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.151 H 309.9°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#501371
RGBrgb(80, 19, 113)
HSLhsl(279, 71%, 26%)
HSVhsv(279, 83%, 44%)
CMYKcmyk(29.2%, 83.2%, 0%, 55.7%)
CIE-LABlab(21.44, 43.29, -40.82)
CIE-LCHlch(21.44, 59.50, 316.69°)
OKLaboklab(34.24% 0.0969 -0.1158)
OKLCHoklch(34.24% 0.151 309.9)
XYZxyz(6.5212, 3.3636, 15.9253)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501371 #347113
analogous
#211371 #501371 #711363
triadic
#501371 #715013 #137150
tetradic
#501371 #712113 #347113 #136371
square
#501371 #712113 #347113 #136371
split-complementary
#501371 #637113 #137121
monochromatic
#13041A #2B0A3D #501371 #751CA5 #9A25DA

Accessibility & contrast

On white

12.56
#501371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#501371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501371
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501371#FFFFFF#000000##FFFFFF
##5013711.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003174
Deuteranopia (green-blind)
#00346F
Tritanopia (blue-blind)
#4B2B42
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #501371;
/* rgb */ color: rgb(80, 19, 113);
/* oklch */ color: oklch(34.2% 0.151 309.9);
Tailwind
colors: {
  custom: {
    50: '#85599a',
    500: '#501371',
    950: '#000000',
  },
}
SCSS
$custom: #501371;
$custom-light: #85599a;
$custom-dark: #000000;
JSON
{
  "hex": "#501371",
  "rgb": {
    "r": 80,
    "g": 19,
    "b": 113
  },
  "hsl": {
    "h": 278.936,
    "s": 71.212,
    "l": 25.882
  },
  "oklch": {
    "l": 0.34243,
    "c": 0.15103,
    "h": 309.9
  },
  "luminance": 0.03363
}

Semantic roles & 50–950 ramp

primary
#501371
secondary
#5FA838
accent
#EE3A79
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #501371

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

Preview Lab → · Contrast checker → · Palette generator →

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