#501171#501171

#501171 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.153 H 310.1°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#501171
RGBrgb(80, 17, 113)
HSLhsl(279, 74%, 25%)
HSVhsv(279, 85%, 44%)
CMYKcmyk(29.2%, 85%, 0%, 55.7%)
CIE-LABlab(21.20, 43.99, -41.21)
CIE-LCHlch(21.20, 60.28, 316.87°)
OKLaboklab(34.07% 0.0986 -0.117)
OKLCHoklch(34.07% 0.153 310.1)
XYZxyz(6.4888, 3.2988, 15.9145)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501171 #327111
analogous
#201171 #501171 #711162
triadic
#501171 #715011 #117150
tetradic
#501171 #712011 #327111 #116271
square
#501171 #712011 #327111 #116271
split-complementary
#501171 #627111 #117120
monochromatic
#13041B #2A093C #501171 #7619A6 #9B21DB

Accessibility & contrast

On white

12.65
#501171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#501171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501171
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501171#FFFFFF#000000##FFFFFF
##5011711.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #501171;
/* rgb */ color: rgb(80, 17, 113);
/* oklch */ color: oklch(34.1% 0.153 310.1);
Tailwind
colors: {
  custom: {
    50: '#85599b',
    500: '#501171',
    950: '#000000',
  },
}
SCSS
$custom: #501171;
$custom-light: #85599b;
$custom-dark: #000000;
JSON
{
  "hex": "#501171",
  "rgb": {
    "r": 80,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 279.375,
    "s": 73.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.34074,
    "c": 0.15297,
    "h": 310.1
  },
  "luminance": 0.03299
}

Semantic roles & 50–950 ramp

primary
#501171
secondary
#5DA836
accent
#F13777
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #501171

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

Preview Lab → · Contrast checker → · Palette generator →

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