#501B85#501B85

#501B85 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.163 H 301.2°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#501B85
RGBrgb(80, 27, 133)
HSLhsl(270, 66%, 31%)
HSVhsv(270, 80%, 52%)
CMYKcmyk(39.8%, 79.7%, 0%, 47.8%)
CIE-LABlab(24.27, 44.95, -48.95)
CIE-LCHlch(24.27, 66.45, 312.56°)
OKLaboklab(36.75% 0.0846 -0.1398)
OKLCHoklch(36.75% 0.163 301.2)
XYZxyz(7.9328, 4.1827, 22.5752)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501B85 #50851B
analogous
#1B1B85 #501B85 #851B85
triadic
#501B85 #85501B #1B8550
tetradic
#501B85 #851B1B #50851B #1B8585
square
#501B85 #851B1B #50851B #1B8585
split-complementary
#501B85 #85851B #1B851B
monochromatic
#13061F #311152 #501B85 #6F25B8 #8D42D9

Accessibility & contrast

On white

11.43
#501B85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#501B85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501B85
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501B85#FFFFFF#000000##FFFFFF
##501B851.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003988
Deuteranopia (green-blind)
#003983
Tritanopia (blue-blind)
#443750
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #501b85;
/* rgb */ color: rgb(80, 27, 133);
/* oklch */ color: oklch(36.8% 0.163 301.2);
Tailwind
colors: {
  custom: {
    50: '#875ea9',
    500: '#501b85',
    950: '#000000',
  },
}
SCSS
$custom: #501b85;
$custom-light: #875ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#501b85",
  "rgb": {
    "r": 80,
    "g": 27,
    "b": 133
  },
  "hsl": {
    "h": 270,
    "s": 66.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36754,
    "c": 0.16339,
    "h": 301.2
  },
  "luminance": 0.04183
}

Semantic roles & 50–950 ramp

primary
#501B85
secondary
#7EB844
accent
#E93F94
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #501B85

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

Preview Lab → · Contrast checker → · Palette generator →

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