#501981#501981

#501981 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.161 H 302.8°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#501981
RGBrgb(80, 25, 129)
HSLhsl(272, 68%, 30%)
HSVhsv(272, 81%, 51%)
CMYKcmyk(38%, 80.6%, 0%, 49.4%)
CIE-LABlab(23.62, 44.78, -47.48)
CIE-LCHlch(23.62, 65.26, 313.32°)
OKLaboklab(36.2% 0.0874 -0.1355)
OKLCHoklch(36.2% 0.161 302.8)
XYZxyz(7.6174, 3.9857, 21.1326)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501981 #4A8119
analogous
#1C1981 #501981 #81197E
triadic
#501981 #815019 #198150
tetradic
#501981 #811C19 #4A8119 #197E81
square
#501981 #811C19 #4A8119 #197E81
split-complementary
#501981 #7E8119 #19811C
monochromatic
#10051A #300F4E #501981 #7023B4 #8F3BD9

Accessibility & contrast

On white

11.68
#501981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#501981 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501981
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501981#FFFFFF#000000##FFFFFF
##5019811.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003784
Deuteranopia (green-blind)
#00387F
Tritanopia (blue-blind)
#46354D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #501981;
/* rgb */ color: rgb(80, 25, 129);
/* oklch */ color: oklch(36.2% 0.161 302.8);
Tailwind
colors: {
  custom: {
    50: '#865da6',
    500: '#501981',
    950: '#000000',
  },
}
SCSS
$custom: #501981;
$custom-light: #865da6;
$custom-dark: #000000;
JSON
{
  "hex": "#501981",
  "rgb": {
    "r": 80,
    "g": 25,
    "b": 129
  },
  "hsl": {
    "h": 271.731,
    "s": 67.532,
    "l": 30.196
  },
  "oklch": {
    "l": 0.36195,
    "c": 0.16123,
    "h": 302.8
  },
  "luminance": 0.03986
}

Semantic roles & 50–950 ramp

primary
#501981
secondary
#78B541
accent
#EA3D8F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #501981

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

Preview Lab → · Contrast checker → · Palette generator →

#501981 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva