#501B77#501B77

#501B77 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.148 H 306.4°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#501B77
RGBrgb(80, 27, 119)
HSLhsl(275, 63%, 29%)
HSVhsv(275, 77%, 47%)
CMYKcmyk(32.8%, 77.3%, 0%, 53.3%)
CIE-LABlab(23.07, 41.46, -42.03)
CIE-LCHlch(23.07, 59.04, 314.61°)
OKLaboklab(35.54% 0.088 -0.1195)
OKLCHoklch(35.54% 0.148 306.4)
XYZxyz(7.0292, 3.8213, 17.8165)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501B77 #42771B
analogous
#221B77 #501B77 #771B70
triadic
#501B77 #77501B #1B7750
tetradic
#501B77 #77221B #42771B #1B7077
square
#501B77 #77221B #42771B #1B7077
split-complementary
#501B77 #70771B #1B7722
monochromatic
#110619 #2E1045 #501B77 #7226A9 #923AD2

Accessibility & contrast

On white

11.90
#501B77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#501B77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501B77
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501B77#FFFFFF#000000##FFFFFF
##501B771.0011.901.7611.90
#FFFFFF11.901.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357A
Deuteranopia (green-blind)
#003775
Tritanopia (blue-blind)
#493148
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #501b77;
/* rgb */ color: rgb(80, 27, 119);
/* oklch */ color: oklch(35.5% 0.148 306.4);
Tailwind
colors: {
  custom: {
    50: '#855d9f',
    500: '#501b77',
    950: '#000000',
  },
}
SCSS
$custom: #501b77;
$custom-light: #855d9f;
$custom-dark: #000000;
JSON
{
  "hex": "#501b77",
  "rgb": {
    "r": 80,
    "g": 27,
    "b": 119
  },
  "hsl": {
    "h": 274.565,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35542,
    "c": 0.14839,
    "h": 306.4
  },
  "luminance": 0.03821
}

Semantic roles & 50–950 ramp

primary
#501B77
secondary
#6FAB42
accent
#E64287
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #501B77

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

Preview Lab → · Contrast checker → · Palette generator →

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