#501671#501671

#501671 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.148 H 309.6°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#501671
RGBrgb(80, 22, 113)
HSLhsl(278, 67%, 26%)
HSVhsv(278, 81%, 44%)
CMYKcmyk(29.2%, 80.5%, 0%, 55.7%)
CIE-LABlab(21.84, 42.14, -40.17)
CIE-LCHlch(21.84, 58.22, 316.37°)
OKLaboklab(34.52% 0.0942 -0.114)
OKLCHoklch(34.52% 0.148 309.6)
XYZxyz(6.5752, 3.4717, 15.9433)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501671 #377116
analogous
#231671 #501671 #711665
triadic
#501671 #715016 #167150
tetradic
#501671 #712316 #377116 #166571
square
#501671 #712316 #377116 #166571
split-complementary
#501671 #657116 #167123
monochromatic
#12051A #2C0C3E #501671 #7420A4 #982CD6

Accessibility & contrast

On white

12.39
#501671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#501671 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501671
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501671#FFFFFF#000000##FFFFFF
##5016711.0012.391.6912.39
#FFFFFF12.391.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #501671;
/* rgb */ color: rgb(80, 22, 113);
/* oklch */ color: oklch(34.5% 0.148 309.6);
Tailwind
colors: {
  custom: {
    50: '#855b9a',
    500: '#501671',
    950: '#000000',
  },
}
SCSS
$custom: #501671;
$custom-light: #855b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#501671",
  "rgb": {
    "r": 80,
    "g": 22,
    "b": 113
  },
  "hsl": {
    "h": 278.242,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.34522,
    "c": 0.14787,
    "h": 309.6
  },
  "luminance": 0.03472
}

Semantic roles & 50–950 ramp

primary
#501671
secondary
#63A73C
accent
#EA3E7C
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #501671

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

Preview Lab → · Contrast checker → · Palette generator →

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