#501A82#501A82

#501A82 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.161 H 302.3°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#501A82
RGBrgb(80, 26, 130)
HSLhsl(271, 67%, 31%)
HSVhsv(271, 80%, 51%)
CMYKcmyk(38.5%, 80%, 0%, 49%)
CIE-LABlab(23.86, 44.61, -47.73)
CIE-LCHlch(23.86, 65.34, 313.07°)
OKLaboklab(36.38% 0.0863 -0.1362)
OKLCHoklch(36.38% 0.161 302.3)
XYZxyz(7.7060, 4.0559, 21.4917)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501A82 #4C821A
analogous
#1C1A82 #501A82 #821A80
triadic
#501A82 #82501A #1A8250
tetradic
#501A82 #821C1A #4C821A #1A8082
square
#501A82 #821C1A #4C821A #1A8082
split-complementary
#501A82 #80821A #1A821C
monochromatic
#11061C #31104F #501A82 #6F24B5 #8E3ED8

Accessibility & contrast

On white

11.59
#501A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#501A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501A82
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501A82#FFFFFF#000000##FFFFFF
##501A821.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003885
Deuteranopia (green-blind)
#003880
Tritanopia (blue-blind)
#45364E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #501a82;
/* rgb */ color: rgb(80, 26, 130);
/* oklch */ color: oklch(36.4% 0.161 302.3);
Tailwind
colors: {
  custom: {
    50: '#865da7',
    500: '#501a82',
    950: '#000000',
  },
}
SCSS
$custom: #501a82;
$custom-light: #865da7;
$custom-dark: #000000;
JSON
{
  "hex": "#501a82",
  "rgb": {
    "r": 80,
    "g": 26,
    "b": 130
  },
  "hsl": {
    "h": 271.154,
    "s": 66.667,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36384,
    "c": 0.16124,
    "h": 302.3
  },
  "luminance": 0.04056
}

Semantic roles & 50–950 ramp

primary
#501A82
secondary
#7AB642
accent
#EA3E91
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #501A82

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

Preview Lab → · Contrast checker → · Palette generator →

#501A82 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva