#501971#501971

#501971 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.144 H 309.2°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#501971
RGBrgb(80, 25, 113)
HSLhsl(278, 64%, 27%)
HSVhsv(278, 78%, 44%)
CMYKcmyk(29.2%, 77.9%, 0%, 55.7%)
CIE-LABlab(22.28, 40.89, -39.46)
CIE-LCHlch(22.28, 56.83, 316.02°)
OKLaboklab(34.83% 0.0913 -0.1119)
OKLCHoklch(34.83% 0.144 309.2)
XYZxyz(6.6359, 3.5931, 15.9635)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501971 #3A7119
analogous
#241971 #501971 #711966
triadic
#501971 #715019 #197150
tetradic
#501971 #712419 #3A7119 #196671
square
#501971 #712419 #3A7119 #196671
split-complementary
#501971 #667119 #197124
monochromatic
#120619 #2D0E3F #501971 #7324A3 #9633D2

Accessibility & contrast

On white

12.22
#501971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#501971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501971
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501971#FFFFFF#000000##FFFFFF
##5019711.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#01366F
Tritanopia (blue-blind)
#4B2E44
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #501971;
/* rgb */ color: rgb(80, 25, 113);
/* oklch */ color: oklch(34.8% 0.144 309.2);
Tailwind
colors: {
  custom: {
    50: '#855c9a',
    500: '#501971',
    950: '#000000',
  },
}
SCSS
$custom: #501971;
$custom-light: #855c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#501971",
  "rgb": {
    "r": 80,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 277.5,
    "s": 63.768,
    "l": 27.059
  },
  "oklch": {
    "l": 0.34829,
    "c": 0.14442,
    "h": 309.2
  },
  "luminance": 0.03593
}

Semantic roles & 50–950 ramp

primary
#501971
secondary
#66A640
accent
#E7417F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #501971

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

Preview Lab → · Contrast checker → · Palette generator →

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