#501F80#501F80

#501F80 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.153 H 302.3°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#501F80
RGBrgb(80, 31, 128)
HSLhsl(270, 61%, 31%)
HSVhsv(270, 76%, 50%)
CMYKcmyk(37.5%, 75.8%, 0%, 49.8%)
CIE-LABlab(24.46, 41.88, -45.48)
CIE-LCHlch(24.46, 61.83, 312.64°)
OKLaboklab(36.76% 0.082 -0.1297)
OKLCHoklch(36.76% 0.153 302.3)
XYZxyz(7.6936, 4.2439, 20.8317)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501F80 #4F801F
analogous
#1F1F80 #501F80 #801F7F
triadic
#501F80 #80501F #1F8050
tetradic
#501F80 #801F1F #4F801F #1F7F80
square
#501F80 #801F1F #4F801F #1F7F80
split-complementary
#501F80 #7F801F #1F801F
monochromatic
#12071D #31134F #501F80 #6F2BB1 #8D47D2

Accessibility & contrast

On white

11.36
#501F80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#501F80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501F80
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501F80#FFFFFF#000000##FFFFFF
##501F801.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003983
Deuteranopia (green-blind)
#003A7E
Tritanopia (blue-blind)
#46374E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #501f80;
/* rgb */ color: rgb(80, 31, 128);
/* oklch */ color: oklch(36.8% 0.153 302.3);
Tailwind
colors: {
  custom: {
    50: '#8660a6',
    500: '#501f80',
    950: '#000000',
  },
}
SCSS
$custom: #501f80;
$custom-light: #8660a6;
$custom-dark: #000000;
JSON
{
  "hex": "#501f80",
  "rgb": {
    "r": 80,
    "g": 31,
    "b": 128
  },
  "hsl": {
    "h": 270.309,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36757,
    "c": 0.15343,
    "h": 302.3
  },
  "luminance": 0.04244
}

Semantic roles & 50–950 ramp

primary
#501F80
secondary
#7DB348
accent
#E44493
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #501F80

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

Preview Lab → · Contrast checker → · Palette generator →

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