#501271#501271

#501271 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.2% C 0.152 H 310.0°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#501271
RGBrgb(80, 18, 113)
HSLhsl(279, 73%, 26%)
HSVhsv(279, 84%, 44%)
CMYKcmyk(29.2%, 84.1%, 0%, 55.7%)
CIE-LABlab(21.32, 43.65, -41.02)
CIE-LCHlch(21.32, 59.90, 316.78°)
OKLaboklab(34.16% 0.0977 -0.1164)
OKLCHoklch(34.16% 0.152 310)
XYZxyz(6.5046, 3.3305, 15.9198)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501271 #337112
analogous
#201271 #501271 #711262
triadic
#501271 #715012 #127150
tetradic
#501271 #712012 #337112 #126271
square
#501271 #712012 #337112 #126271
split-complementary
#501271 #627112 #127120
monochromatic
#13041A #2B0A3C #501271 #751AA6 #9B23DB

Accessibility & contrast

On white

12.61
#501271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #501271
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501271#FFFFFF#000000##FFFFFF
##5012711.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.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: #501271;
/* rgb */ color: rgb(80, 18, 113);
/* oklch */ color: oklch(34.2% 0.152 310.0);
Tailwind
colors: {
  custom: {
    50: '#85599a',
    500: '#501271',
    950: '#000000',
  },
}
SCSS
$custom: #501271;
$custom-light: #85599a;
$custom-dark: #000000;
JSON
{
  "hex": "#501271",
  "rgb": {
    "r": 80,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 279.158,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.34157,
    "c": 0.15202,
    "h": 310
  },
  "luminance": 0.0333
}

Semantic roles & 50–950 ramp

primary
#501271
secondary
#5EA837
accent
#EF3978
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #501271

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

Preview Lab → · Contrast checker → · Palette generator →

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