#501B71#501B71

#501B71 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.0% C 0.142 H 308.9°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#501B71
RGBrgb(80, 27, 113)
HSLhsl(277, 61%, 27%)
HSVhsv(277, 76%, 44%)
CMYKcmyk(29.2%, 76.1%, 0%, 55.7%)
CIE-LABlab(22.59, 40.01, -38.96)
CIE-LCHlch(22.59, 55.84, 315.76°)
OKLaboklab(35.05% 0.0892 -0.1104)
OKLCHoklch(35.05% 0.142 308.9)
XYZxyz(6.6802, 3.6817, 15.9783)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501B71 #3C711B
analogous
#251B71 #501B71 #711B67
triadic
#501B71 #71501B #1B7150
tetradic
#501B71 #71251B #3C711B #1B6771
square
#501B71 #71251B #3C711B #1B6771
split-complementary
#501B71 #67711B #1B7125
monochromatic
#110619 #2D0F40 #501B71 #7327A2 #9537CF

Accessibility & contrast

On white

12.09
#501B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#501B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501B71
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501B71#FFFFFF#000000##FFFFFF
##501B711.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#04376F
Tritanopia (blue-blind)
#4B2F44
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #501b71;
/* rgb */ color: rgb(80, 27, 113);
/* oklch */ color: oklch(35.0% 0.142 308.9);
Tailwind
colors: {
  custom: {
    50: '#855d9a',
    500: '#501b71',
    950: '#000000',
  },
}
SCSS
$custom: #501b71;
$custom-light: #855d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#501b71",
  "rgb": {
    "r": 80,
    "g": 27,
    "b": 113
  },
  "hsl": {
    "h": 276.977,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.3505,
    "c": 0.14196,
    "h": 308.9
  },
  "luminance": 0.03682
}

Semantic roles & 50–950 ramp

primary
#501B71
secondary
#68A642
accent
#E54381
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #501B71

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

Preview Lab → · Contrast checker → · Palette generator →

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