#501766#501766

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

Color values

HEX#501766
RGBrgb(80, 23, 102)
HSLhsl(283, 63%, 25%)
HSVhsv(283, 77%, 40%)
CMYKcmyk(21.6%, 77.5%, 0%, 60%)
CIE-LABlab(21.12, 39.21, -34.18)
CIE-LCHlch(21.12, 52.02, 318.92°)
OKLaboklab(33.74% 0.0952 -0.0964)
OKLCHoklch(33.74% 0.136 314.7)
XYZxyz(6.0125, 3.2778, 12.8838)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501766 #2D6617
analogous
#291766 #501766 #661755
triadic
#501766 #665017 #176650
tetradic
#501766 #662917 #2D6617 #175566
square
#501766 #662917 #2D6617 #175566
split-complementary
#501766 #556617 #176629
monochromatic
#140619 #290C34 #501766 #772298 #9E2ECA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##501766#FFFFFF#000000##FFFFFF
##5017661.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)
#003068
Deuteranopia (green-blind)
#133464
Tritanopia (blue-blind)
#4E283D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #501766;
/* rgb */ color: rgb(80, 23, 102);
/* oklch */ color: oklch(33.7% 0.136 314.7);
Tailwind
colors: {
  custom: {
    50: '#845a92',
    500: '#501766',
    950: '#000000',
  },
}
SCSS
$custom: #501766;
$custom-light: #845a92;
$custom-dark: #000000;
JSON
{
  "hex": "#501766",
  "rgb": {
    "r": 80,
    "g": 23,
    "b": 102
  },
  "hsl": {
    "h": 283.291,
    "s": 63.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.33742,
    "c": 0.1355,
    "h": 314.7
  },
  "luminance": 0.03278
}

Semantic roles & 50–950 ramp

primary
#501766
secondary
#579C3C
accent
#E6426F
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #501766

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

Preview Lab → · Contrast checker → · Palette generator →

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