#501572#501572

#501572 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.150 H 309.3°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#501572
RGBrgb(80, 21, 114)
HSLhsl(278, 69%, 26%)
HSVhsv(278, 82%, 45%)
CMYKcmyk(29.8%, 81.6%, 0%, 55.3%)
CIE-LABlab(21.79, 42.77, -40.90)
CIE-LCHlch(21.79, 59.18, 316.28°)
OKLaboklab(34.51% 0.0949 -0.1161)
OKLCHoklch(34.51% 0.15 309.3)
XYZxyz(6.6131, 3.4568, 16.2352)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501572 #377215
analogous
#221572 #501572 #721566
triadic
#501572 #725015 #157250
tetradic
#501572 #722215 #377215 #156672
square
#501572 #722215 #377215 #156672
split-complementary
#501572 #667215 #157222
monochromatic
#12051A #2C0B3E #501572 #741FA6 #982AD8

Accessibility & contrast

On white

12.42
#501572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#501572 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501572
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501572#FFFFFF#000000##FFFFFF
##5015721.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003275
Deuteranopia (green-blind)
#003570
Tritanopia (blue-blind)
#4B2C43
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #501572;
/* rgb */ color: rgb(80, 21, 114);
/* oklch */ color: oklch(34.5% 0.150 309.3);
Tailwind
colors: {
  custom: {
    50: '#855a9b',
    500: '#501572',
    950: '#000000',
  },
}
SCSS
$custom: #501572;
$custom-light: #855a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#501572",
  "rgb": {
    "r": 80,
    "g": 21,
    "b": 114
  },
  "hsl": {
    "h": 278.065,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.3451,
    "c": 0.14997,
    "h": 309.3
  },
  "luminance": 0.03457
}

Semantic roles & 50–950 ramp

primary
#501572
secondary
#63A83B
accent
#EC3C7C
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #501572

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

Preview Lab → · Contrast checker → · Palette generator →

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