#501281#501281

#501281 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.6% C 0.168 H 303.6°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#501281
RGBrgb(80, 18, 129)
HSLhsl(274, 76%, 29%)
HSVhsv(274, 86%, 51%)
CMYKcmyk(38%, 86%, 0%, 49.4%)
CIE-LABlab(22.73, 47.37, -48.93)
CIE-LCHlch(22.73, 68.11, 314.07°)
OKLaboklab(35.58% 0.0929 -0.1397)
OKLCHoklch(35.58% 0.168 303.6)
XYZxyz(7.4861, 3.7231, 21.0889)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501281 #438112
analogous
#191281 #501281 #81127B
triadic
#501281 #815012 #128150
tetradic
#501281 #811912 #438112 #127B81
square
#501281 #811912 #438112 #127B81
split-complementary
#501281 #7B8112 #128119
monochromatic
#11041B #2F0B4B #501281 #7119B7 #912CE2

Accessibility & contrast

On white

12.04
#501281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #501281
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501281#FFFFFF#000000##FFFFFF
##5012811.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.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: #501281;
/* rgb */ color: rgb(80, 18, 129);
/* oklch */ color: oklch(35.6% 0.168 303.6);
Tailwind
colors: {
  custom: {
    50: '#875aa6',
    500: '#501281',
    950: '#000000',
  },
}
SCSS
$custom: #501281;
$custom-light: #875aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#501281",
  "rgb": {
    "r": 80,
    "g": 18,
    "b": 129
  },
  "hsl": {
    "h": 273.514,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35576,
    "c": 0.16775,
    "h": 303.6
  },
  "luminance": 0.03723
}

Semantic roles & 50–950 ramp

primary
#501281
secondary
#70B738
accent
#F23689
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #501281

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

Preview Lab → · Contrast checker → · Palette generator →

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