#501F82#501F82

#501F82 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.9% C 0.156 H 301.6°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#501F82
RGBrgb(80, 31, 130)
HSLhsl(270, 61%, 32%)
HSVhsv(270, 76%, 51%)
CMYKcmyk(38.5%, 76.2%, 0%, 49%)
CIE-LABlab(24.63, 42.40, -46.47)
CIE-LCHlch(24.63, 62.90, 312.38°)
OKLaboklab(36.93% 0.0816 -0.1326)
OKLCHoklch(36.93% 0.156 301.6)
XYZxyz(7.8265, 4.2971, 21.5319)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501F82 #51821F
analogous
#1F2082 #501F82 #821F82
triadic
#501F82 #82501F #1F8250
tetradic
#501F82 #821F20 #51821F #1F8282
square
#501F82 #821F20 #51821F #1F8282
split-complementary
#501F82 #82821F #20821F
monochromatic
#13071F #321351 #501F82 #6E2BB3 #8D48D3

Accessibility & contrast

On white

11.29
#501F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#501F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501F82
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501F82#FFFFFF#000000##FFFFFF
##501F821.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A85
Deuteranopia (green-blind)
#003A80
Tritanopia (blue-blind)
#45384F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #501f82;
/* rgb */ color: rgb(80, 31, 130);
/* oklch */ color: oklch(36.9% 0.156 301.6);
Tailwind
colors: {
  custom: {
    50: '#8660a7',
    500: '#501f82',
    950: '#000000',
  },
}
SCSS
$custom: #501f82;
$custom-light: #8660a7;
$custom-dark: #000000;
JSON
{
  "hex": "#501f82",
  "rgb": {
    "r": 80,
    "g": 31,
    "b": 130
  },
  "hsl": {
    "h": 269.697,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36929,
    "c": 0.15565,
    "h": 301.6
  },
  "luminance": 0.04297
}

Semantic roles & 50–950 ramp

primary
#501F82
secondary
#7FB548
accent
#E54395
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #501F82

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

Preview Lab → · Contrast checker → · Palette generator →

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