#501B80#501B80

#501B80 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.158 H 302.9°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#501B80
RGBrgb(80, 27, 128)
HSLhsl(271, 65%, 30%)
HSVhsv(271, 79%, 50%)
CMYKcmyk(37.5%, 78.9%, 0%, 49.8%)
CIE-LABlab(23.83, 43.69, -46.51)
CIE-LCHlch(23.83, 63.81, 313.21°)
OKLaboklab(36.31% 0.0859 -0.1327)
OKLCHoklch(36.31% 0.158 302.9)
XYZxyz(7.5956, 4.0478, 20.7990)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501B80 #4B801B
analogous
#1D1B80 #501B80 #801B7D
triadic
#501B80 #80501B #1B8050
tetradic
#501B80 #801D1B #4B801B #1B7D80
square
#501B80 #801D1B #4B801B #1B7D80
split-complementary
#501B80 #7D801B #1B801D
monochromatic
#11061B #30104D #501B80 #7026B3 #8E3FD6

Accessibility & contrast

On white

11.60
#501B80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #501B80
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501B80#FFFFFF#000000##FFFFFF
##501B801.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003883
Deuteranopia (green-blind)
#00387E
Tritanopia (blue-blind)
#46354D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #501b80;
/* rgb */ color: rgb(80, 27, 128);
/* oklch */ color: oklch(36.3% 0.158 302.9);
Tailwind
colors: {
  custom: {
    50: '#865ea6',
    500: '#501b80',
    950: '#000000',
  },
}
SCSS
$custom: #501b80;
$custom-light: #865ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#501b80",
  "rgb": {
    "r": 80,
    "g": 27,
    "b": 128
  },
  "hsl": {
    "h": 271.485,
    "s": 65.161,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36312,
    "c": 0.15804,
    "h": 302.9
  },
  "luminance": 0.04048
}

Semantic roles & 50–950 ramp

primary
#501B80
secondary
#79B443
accent
#E84090
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #501B80

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

Preview Lab → · Contrast checker → · Palette generator →

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