#501767#501767

#501767 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.8% C 0.137 H 314.1°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#501767
RGBrgb(80, 23, 103)
HSLhsl(283, 63%, 25%)
HSVhsv(283, 78%, 40%)
CMYKcmyk(22.3%, 77.7%, 0%, 59.6%)
CIE-LABlab(21.20, 39.43, -34.72)
CIE-LCHlch(21.20, 52.54, 318.64°)
OKLaboklab(33.82% 0.0951 -0.098)
OKLCHoklch(33.82% 0.137 314.1)
XYZxyz(6.0624, 3.2977, 13.1465)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501767 #2E6717
analogous
#281767 #501767 #671756
triadic
#501767 #675017 #176750
tetradic
#501767 #672817 #2E6717 #175667
square
#501767 #672817 #2E6717 #175667
split-complementary
#501767 #566717 #176728
monochromatic
#130619 #290C35 #501767 #772299 #9E2DCB

Accessibility & contrast

On white

12.65
#501767 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #501767
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501767#FFFFFF#000000##FFFFFF
##5017671.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003069
Deuteranopia (green-blind)
#123465
Tritanopia (blue-blind)
#4E293E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #501767;
/* rgb */ color: rgb(80, 23, 103);
/* oklch */ color: oklch(33.8% 0.137 314.1);
Tailwind
colors: {
  custom: {
    50: '#845a93',
    500: '#501767',
    950: '#000000',
  },
}
SCSS
$custom: #501767;
$custom-light: #845a93;
$custom-dark: #000000;
JSON
{
  "hex": "#501767",
  "rgb": {
    "r": 80,
    "g": 23,
    "b": 103
  },
  "hsl": {
    "h": 282.75,
    "s": 63.492,
    "l": 24.706
  },
  "oklch": {
    "l": 0.33819,
    "c": 0.13652,
    "h": 314.1
  },
  "luminance": 0.03298
}

Semantic roles & 50–950 ramp

primary
#501767
secondary
#589D3D
accent
#E74171
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #501767

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

Preview Lab → · Contrast checker → · Palette generator →

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