#501F81#501F81

#501F81 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.8% C 0.155 H 302.0°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#501F81
RGBrgb(80, 31, 129)
HSLhsl(270, 61%, 31%)
HSVhsv(270, 76%, 51%)
CMYKcmyk(38%, 76%, 0%, 49.4%)
CIE-LABlab(24.55, 42.14, -45.98)
CIE-LCHlch(24.55, 62.37, 312.51°)
OKLaboklab(36.84% 0.0818 -0.1311)
OKLCHoklch(36.84% 0.155 302)
XYZxyz(7.7597, 4.2704, 21.1801)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501F81 #50811F
analogous
#1F1F81 #501F81 #811F81
triadic
#501F81 #81501F #1F8150
tetradic
#501F81 #811F1F #50811F #1F8181
square
#501F81 #811F1F #50811F #1F8181
split-complementary
#501F81 #81811F #1F811F
monochromatic
#13071E #311350 #501F81 #6F2BB2 #8D47D3

Accessibility & contrast

On white

11.33
#501F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #501F81
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501F81#FFFFFF#000000##FFFFFF
##501F811.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #501f81;
/* rgb */ color: rgb(80, 31, 129);
/* oklch */ color: oklch(36.8% 0.155 302.0);
Tailwind
colors: {
  custom: {
    50: '#8660a6',
    500: '#501f81',
    950: '#000000',
  },
}
SCSS
$custom: #501f81;
$custom-light: #8660a6;
$custom-dark: #000000;
JSON
{
  "hex": "#501f81",
  "rgb": {
    "r": 80,
    "g": 31,
    "b": 129
  },
  "hsl": {
    "h": 270,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36843,
    "c": 0.15454,
    "h": 302
  },
  "luminance": 0.0427
}

Semantic roles & 50–950 ramp

primary
#501F81
secondary
#7EB448
accent
#E44394
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #501F81

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

Preview Lab → · Contrast checker → · Palette generator →

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