#501864#501864

#501864 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.7% C 0.132 H 315.6°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#501864
RGBrgb(80, 24, 100)
HSLhsl(284, 61%, 24%)
HSVhsv(284, 76%, 39%)
CMYKcmyk(20%, 76%, 0%, 60.8%)
CIE-LABlab(21.13, 38.32, -32.86)
CIE-LCHlch(21.13, 50.48, 319.39°)
OKLaboklab(33.7% 0.0944 -0.0925)
OKLCHoklch(33.7% 0.132 315.6)
XYZxyz(5.9348, 3.2791, 12.3744)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501864 #2C6418
analogous
#2A1864 #501864 #641852
triadic
#501864 #645018 #186450
tetradic
#501864 #642A18 #2C6418 #185264
square
#501864 #642A18 #2C6418 #185264
split-complementary
#501864 #526418 #18642A
monochromatic
#140619 #290C33 #501864 #772495 #9F30C7

Accessibility & contrast

On white

12.68
#501864 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#501864 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501864
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501864#FFFFFF#000000##FFFFFF
##5018641.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003066
Deuteranopia (green-blind)
#163462
Tritanopia (blue-blind)
#4F283C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #501864;
/* rgb */ color: rgb(80, 24, 100);
/* oklch */ color: oklch(33.7% 0.132 315.6);
Tailwind
colors: {
  custom: {
    50: '#845b91',
    500: '#501864',
    950: '#000000',
  },
}
SCSS
$custom: #501864;
$custom-light: #845b91;
$custom-dark: #000000;
JSON
{
  "hex": "#501864",
  "rgb": {
    "r": 80,
    "g": 24,
    "b": 100
  },
  "hsl": {
    "h": 284.211,
    "s": 61.29,
    "l": 24.314
  },
  "oklch": {
    "l": 0.33699,
    "c": 0.13218,
    "h": 315.6
  },
  "luminance": 0.03279
}

Semantic roles & 50–950 ramp

primary
#501864
secondary
#569A3E
accent
#E4436E
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040D
muted
#7C797D

Preview Lab

Preview with #501864

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

Preview Lab → · Contrast checker → · Palette generator →

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