#501781#501781

#501781 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.163 H 303.1°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#501781
RGBrgb(80, 23, 129)
HSLhsl(272, 70%, 30%)
HSVhsv(272, 82%, 51%)
CMYKcmyk(38%, 82.2%, 0%, 49.4%)
CIE-LABlab(23.35, 45.58, -47.93)
CIE-LCHlch(23.35, 66.14, 313.56°)
OKLaboklab(36% 0.0891 -0.1368)
OKLCHoklch(36% 0.163 303.1)
XYZxyz(7.5762, 3.9032, 21.1189)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501781 #488117
analogous
#1B1781 #501781 #81177D
triadic
#501781 #815017 #178150
tetradic
#501781 #811B17 #488117 #177D81
square
#501781 #811B17 #488117 #177D81
split-complementary
#501781 #7D8117 #17811B
monochromatic
#10051A #300E4D #501781 #7020B5 #8F37DB

Accessibility & contrast

On white

11.79
#501781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#501781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501781
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501781#FFFFFF#000000##FFFFFF
##5017811.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003784
Deuteranopia (green-blind)
#00377F
Tritanopia (blue-blind)
#46344C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #501781;
/* rgb */ color: rgb(80, 23, 129);
/* oklch */ color: oklch(36.0% 0.163 303.1);
Tailwind
colors: {
  custom: {
    50: '#875ca6',
    500: '#501781',
    950: '#000000',
  },
}
SCSS
$custom: #501781;
$custom-light: #875ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#501781",
  "rgb": {
    "r": 80,
    "g": 23,
    "b": 129
  },
  "hsl": {
    "h": 272.264,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.36003,
    "c": 0.16324,
    "h": 303.1
  },
  "luminance": 0.03903
}

Semantic roles & 50–950 ramp

primary
#501781
secondary
#75B53E
accent
#ED3B8D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #501781

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

Preview Lab → · Contrast checker → · Palette generator →

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