#501768#501768

#501768 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.9% C 0.138 H 313.7°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#501768
RGBrgb(80, 23, 104)
HSLhsl(282, 64%, 25%)
HSVhsv(282, 78%, 41%)
CMYKcmyk(23.1%, 77.9%, 0%, 59.2%)
CIE-LABlab(21.27, 39.66, -35.25)
CIE-LCHlch(21.27, 53.06, 318.37°)
OKLaboklab(33.9% 0.0949 -0.0995)
OKLCHoklch(33.9% 0.138 313.7)
XYZxyz(6.1129, 3.3179, 13.4124)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501768 #2F6817
analogous
#271768 #501768 #681758
triadic
#501768 #685017 #176850
tetradic
#501768 #682717 #2F6817 #175868
square
#501768 #682717 #2F6817 #175868
split-complementary
#501768 #586817 #176827
monochromatic
#130619 #290C36 #501768 #77229A #9D2DCC

Accessibility & contrast

On white

12.62
#501768 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #501768
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501768#FFFFFF#000000##FFFFFF
##5017681.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306A
Deuteranopia (green-blind)
#103466
Tritanopia (blue-blind)
#4E293E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #501768;
/* rgb */ color: rgb(80, 23, 104);
/* oklch */ color: oklch(33.9% 0.138 313.7);
Tailwind
colors: {
  custom: {
    50: '#845b94',
    500: '#501768',
    950: '#000000',
  },
}
SCSS
$custom: #501768;
$custom-light: #845b94;
$custom-dark: #000000;
JSON
{
  "hex": "#501768",
  "rgb": {
    "r": 80,
    "g": 23,
    "b": 104
  },
  "hsl": {
    "h": 282.222,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.33897,
    "c": 0.13754,
    "h": 313.7
  },
  "luminance": 0.03318
}

Semantic roles & 50–950 ramp

primary
#501768
secondary
#5A9E3D
accent
#E74172
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #501768

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

Preview Lab → · Contrast checker → · Palette generator →

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