#501B7A#501B7A

#501B7A is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.152 H 305.2°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#501B7A
RGBrgb(80, 27, 122)
HSLhsl(273, 64%, 29%)
HSVhsv(273, 78%, 48%)
CMYKcmyk(34.4%, 77.9%, 0%, 52.2%)
CIE-LABlab(23.32, 42.20, -43.54)
CIE-LCHlch(23.32, 60.63, 314.11°)
OKLaboklab(35.8% 0.0874 -0.1239)
OKLCHoklch(35.8% 0.152 305.2)
XYZxyz(7.2123, 3.8945, 18.7803)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501B7A #457A1B
analogous
#211B7A #501B7A #7A1B75
triadic
#501B7A #7A501B #1B7A50
tetradic
#501B7A #7A211B #457A1B #1B757A
square
#501B7A #7A211B #457A1B #1B757A
split-complementary
#501B7A #757A1B #1B7A21
monochromatic
#100619 #2F1048 #501B7A #7126AC #913CD4

Accessibility & contrast

On white

11.81
#501B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#501B7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501B7A
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501B7A#FFFFFF#000000##FFFFFF
##501B7A1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#003878
Tritanopia (blue-blind)
#483349
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #501b7a;
/* rgb */ color: rgb(80, 27, 122);
/* oklch */ color: oklch(35.8% 0.152 305.2);
Tailwind
colors: {
  custom: {
    50: '#865da1',
    500: '#501b7a',
    950: '#000000',
  },
}
SCSS
$custom: #501b7a;
$custom-light: #865da1;
$custom-dark: #000000;
JSON
{
  "hex": "#501b7a",
  "rgb": {
    "r": 80,
    "g": 27,
    "b": 122
  },
  "hsl": {
    "h": 273.474,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.35795,
    "c": 0.15161,
    "h": 305.2
  },
  "luminance": 0.03894
}

Semantic roles & 50–950 ramp

primary
#501B7A
secondary
#72AE43
accent
#E7418A
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #501B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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