#501B7E#501B7E

#501B7E is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.156 H 303.7°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#501B7E
RGBrgb(80, 27, 126)
HSLhsl(272, 65%, 30%)
HSVhsv(272, 79%, 49%)
CMYKcmyk(36.5%, 78.6%, 0%, 50.6%)
CIE-LABlab(23.66, 43.19, -45.53)
CIE-LCHlch(23.66, 62.76, 313.49°)
OKLaboklab(36.14% 0.0864 -0.1298)
OKLCHoklch(36.14% 0.156 303.7)
XYZxyz(7.4652, 3.9957, 20.1126)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501B7E #497E1B
analogous
#1E1B7E #501B7E #7E1B7B
triadic
#501B7E #7E501B #1B7E50
tetradic
#501B7E #7E1E1B #497E1B #1B7B7E
square
#501B7E #7E1E1B #497E1B #1B7B7E
split-complementary
#501B7E #7B7E1B #1B7E1E
monochromatic
#100519 #30104C #501B7E #7026B0 #8F3ED6

Accessibility & contrast

On white

11.67
#501B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #501B7E
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501B7E#FFFFFF#000000##FFFFFF
##501B7E1.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#00387C
Tritanopia (blue-blind)
#47344C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #501b7e;
/* rgb */ color: rgb(80, 27, 126);
/* oklch */ color: oklch(36.1% 0.156 303.7);
Tailwind
colors: {
  custom: {
    50: '#865ea4',
    500: '#501b7e',
    950: '#000000',
  },
}
SCSS
$custom: #501b7e;
$custom-light: #865ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#501b7e",
  "rgb": {
    "r": 80,
    "g": 27,
    "b": 126
  },
  "hsl": {
    "h": 272.121,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.36137,
    "c": 0.15589,
    "h": 303.7
  },
  "luminance": 0.03996
}

Semantic roles & 50–950 ramp

primary
#501B7E
secondary
#76B243
accent
#E8408E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #501B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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