#501B7F#501B7F

#501B7F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.157 H 303.3°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#501B7F
RGBrgb(80, 27, 127)
HSLhsl(272, 65%, 30%)
HSVhsv(272, 79%, 50%)
CMYKcmyk(37%, 78.7%, 0%, 50.2%)
CIE-LABlab(23.74, 43.44, -46.02)
CIE-LCHlch(23.74, 63.29, 313.35°)
OKLaboklab(36.22% 0.0862 -0.1312)
OKLCHoklch(36.22% 0.157 303.3)
XYZxyz(7.5301, 4.0216, 20.4541)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501B7F #4A7F1B
analogous
#1E1B7F #501B7F #7F1B7C
triadic
#501B7F #7F501B #1B7F50
tetradic
#501B7F #7F1E1B #4A7F1B #1B7C7F
square
#501B7F #7F1E1B #4A7F1B #1B7C7F
split-complementary
#501B7F #7C7F1B #1B7F1E
monochromatic
#10061A #30104D #501B7F #7026B1 #8F3ED6

Accessibility & contrast

On white

11.64
#501B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#501B7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501B7F
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501B7F#FFFFFF#000000##FFFFFF
##501B7F1.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#00387D
Tritanopia (blue-blind)
#46354C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #501b7f;
/* rgb */ color: rgb(80, 27, 127);
/* oklch */ color: oklch(36.2% 0.157 303.3);
Tailwind
colors: {
  custom: {
    50: '#865ea5',
    500: '#501b7f',
    950: '#000000',
  },
}
SCSS
$custom: #501b7f;
$custom-light: #865ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#501b7f",
  "rgb": {
    "r": 80,
    "g": 27,
    "b": 127
  },
  "hsl": {
    "h": 271.8,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.36224,
    "c": 0.15696,
    "h": 303.3
  },
  "luminance": 0.04022
}

Semantic roles & 50–950 ramp

primary
#501B7F
secondary
#78B343
accent
#E8408F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #501B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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