#501771#501771

#501771 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.147 H 309.5°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#501771
RGBrgb(80, 23, 113)
HSLhsl(278, 66%, 27%)
HSVhsv(278, 80%, 44%)
CMYKcmyk(29.2%, 79.6%, 0%, 55.7%)
CIE-LABlab(21.98, 41.74, -39.94)
CIE-LCHlch(21.98, 57.77, 316.26°)
OKLaboklab(34.62% 0.0933 -0.1133)
OKLCHoklch(34.62% 0.147 309.5)
XYZxyz(6.5947, 3.5107, 15.9498)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501771 #387117
analogous
#231771 #501771 #711765
triadic
#501771 #715017 #177150
tetradic
#501771 #712317 #387117 #176571
square
#501771 #712317 #387117 #176571
split-complementary
#501771 #657117 #177123
monochromatic
#120519 #2C0D3E #501771 #7421A4 #972ED4

Accessibility & contrast

On white

12.34
#501771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#501771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501771
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501771#FFFFFF#000000##FFFFFF
##5017711.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003273
Deuteranopia (green-blind)
#00356F
Tritanopia (blue-blind)
#4B2D43
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #501771;
/* rgb */ color: rgb(80, 23, 113);
/* oklch */ color: oklch(34.6% 0.147 309.5);
Tailwind
colors: {
  custom: {
    50: '#855b9a',
    500: '#501771',
    950: '#000000',
  },
}
SCSS
$custom: #501771;
$custom-light: #855b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#501771",
  "rgb": {
    "r": 80,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 278,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.34621,
    "c": 0.14676,
    "h": 309.5
  },
  "luminance": 0.03511
}

Semantic roles & 50–950 ramp

primary
#501771
secondary
#64A73D
accent
#E93F7D
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #501771

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

Preview Lab → · Contrast checker → · Palette generator →

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