#501B82#501B82

#501B82 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.160 H 302.2°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#501B82
RGBrgb(80, 27, 130)
HSLhsl(271, 66%, 31%)
HSVhsv(271, 79%, 51%)
CMYKcmyk(38.5%, 79.2%, 0%, 49%)
CIE-LABlab(24.00, 44.19, -47.49)
CIE-LCHlch(24.00, 64.87, 312.94°)
OKLaboklab(36.49% 0.0854 -0.1355)
OKLCHoklch(36.49% 0.16 302.2)
XYZxyz(7.7285, 4.1010, 21.4992)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501B82 #4D821B
analogous
#1D1B82 #501B82 #821B80
triadic
#501B82 #82501B #1B8250
tetradic
#501B82 #821D1B #4D821B #1B8082
square
#501B82 #821D1B #4D821B #1B8082
split-complementary
#501B82 #80821B #1B821D
monochromatic
#12061D #31104F #501B82 #6F26B5 #8E40D7

Accessibility & contrast

On white

11.54
#501B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#501B82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501B82
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501B82#FFFFFF#000000##FFFFFF
##501B821.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003885
Deuteranopia (green-blind)
#003980
Tritanopia (blue-blind)
#45364E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #501b82;
/* rgb */ color: rgb(80, 27, 130);
/* oklch */ color: oklch(36.5% 0.160 302.2);
Tailwind
colors: {
  custom: {
    50: '#865ea7',
    500: '#501b82',
    950: '#000000',
  },
}
SCSS
$custom: #501b82;
$custom-light: #865ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#501b82",
  "rgb": {
    "r": 80,
    "g": 27,
    "b": 130
  },
  "hsl": {
    "h": 270.874,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36487,
    "c": 0.16018,
    "h": 302.2
  },
  "luminance": 0.04101
}

Semantic roles & 50–950 ramp

primary
#501B82
secondary
#7BB643
accent
#E93F91
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #501B82

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

Preview Lab → · Contrast checker → · Palette generator →

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