#501181#501181

#501181 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.169 H 303.7°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#501181
RGBrgb(80, 17, 129)
HSLhsl(274, 77%, 29%)
HSVhsv(274, 87%, 51%)
CMYKcmyk(38%, 86.8%, 0%, 49.4%)
CIE-LABlab(22.62, 47.69, -49.11)
CIE-LCHlch(22.62, 68.46, 314.16°)
OKLaboklab(35.5% 0.0936 -0.1402)
OKLCHoklch(35.5% 0.169 303.7)
XYZxyz(7.4702, 3.6914, 21.0836)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501181 #428111
analogous
#181181 #501181 #81117A
triadic
#501181 #815011 #118150
tetradic
#501181 #811811 #428111 #117A81
square
#501181 #811811 #428111 #117A81
split-complementary
#501181 #7A8111 #118118
monochromatic
#11041B #2E0A4B #501181 #7218B7 #922AE3

Accessibility & contrast

On white

12.08
#501181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#501181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501181
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501181#FFFFFF#000000##FFFFFF
##5011811.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003584
Deuteranopia (green-blind)
#00367F
Tritanopia (blue-blind)
#46324B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #501181;
/* rgb */ color: rgb(80, 17, 129);
/* oklch */ color: oklch(35.5% 0.169 303.7);
Tailwind
colors: {
  custom: {
    50: '#875aa6',
    500: '#501181',
    950: '#000000',
  },
}
SCSS
$custom: #501181;
$custom-light: #875aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#501181",
  "rgb": {
    "r": 80,
    "g": 17,
    "b": 129
  },
  "hsl": {
    "h": 273.75,
    "s": 76.712,
    "l": 28.627
  },
  "oklch": {
    "l": 0.355,
    "c": 0.16857,
    "h": 303.7
  },
  "luminance": 0.03691
}

Semantic roles & 50–950 ramp

primary
#501181
secondary
#6FB737
accent
#F33588
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #501181

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

Preview Lab → · Contrast checker → · Palette generator →

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