#501B6D#501B6D

#501B6D is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.138 H 310.7°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#501B6D
RGBrgb(80, 27, 109)
HSLhsl(279, 60%, 27%)
HSVhsv(279, 75%, 43%)
CMYKcmyk(26.6%, 75.2%, 0%, 57.3%)
CIE-LABlab(22.28, 39.05, -36.88)
CIE-LCHlch(22.28, 53.71, 316.64°)
OKLaboklab(34.73% 0.0898 -0.1043)
OKLCHoklch(34.73% 0.138 310.7)
XYZxyz(6.4600, 3.5936, 14.8184)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501B6D #386D1B
analogous
#271B6D #501B6D #6D1B61
triadic
#501B6D #6D501B #1B6D50
tetradic
#501B6D #6D271B #386D1B #1B616D
square
#501B6D #6D271B #386D1B #1B616D
split-complementary
#501B6D #616D1B #1B6D27
monochromatic
#120619 #2C0F3C #501B6D #74279E #9735CD

Accessibility & contrast

On white

12.22
#501B6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#501B6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501B6D
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501B6D#FFFFFF#000000##FFFFFF
##501B6D1.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336F
Deuteranopia (green-blind)
#0D366B
Tritanopia (blue-blind)
#4C2D42
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #501b6d;
/* rgb */ color: rgb(80, 27, 109);
/* oklch */ color: oklch(34.7% 0.138 310.7);
Tailwind
colors: {
  custom: {
    50: '#845d97',
    500: '#501b6d',
    950: '#000000',
  },
}
SCSS
$custom: #501b6d;
$custom-light: #845d97;
$custom-dark: #000000;
JSON
{
  "hex": "#501b6d",
  "rgb": {
    "r": 80,
    "g": 27,
    "b": 109
  },
  "hsl": {
    "h": 278.78,
    "s": 60.294,
    "l": 26.667
  },
  "oklch": {
    "l": 0.34732,
    "c": 0.13768,
    "h": 310.7
  },
  "luminance": 0.03593
}

Semantic roles & 50–950 ramp

primary
#501B6D
secondary
#64A242
accent
#E3447D
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #501B6D

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

Preview Lab → · Contrast checker → · Palette generator →

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