#501762#501762

#501762 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.4% C 0.131 H 316.7°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#501762
RGBrgb(80, 23, 98)
HSLhsl(286, 62%, 24%)
HSVhsv(286, 77%, 38%)
CMYKcmyk(18.4%, 76.5%, 0%, 61.6%)
CIE-LABlab(20.83, 38.32, -32.03)
CIE-LCHlch(20.83, 49.94, 320.11°)
OKLaboklab(33.44% 0.0957 -0.0901)
OKLCHoklch(33.44% 0.131 316.7)
XYZxyz(5.8189, 3.2003, 11.8641)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501762 #296217
analogous
#2A1762 #501762 #62174E
triadic
#501762 #625017 #176250
tetradic
#501762 #622A17 #296217 #174E62
square
#501762 #622A17 #296217 #174E62
split-complementary
#501762 #4E6217 #17622A
monochromatic
#140619 #280B30 #501762 #782394 #A12EC5

Accessibility & contrast

On white

12.80
#501762 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#501762 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501762
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501762#FFFFFF#000000##FFFFFF
##5017621.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F64
Deuteranopia (green-blind)
#183460
Tritanopia (blue-blind)
#4F263B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #501762;
/* rgb */ color: rgb(80, 23, 98);
/* oklch */ color: oklch(33.4% 0.131 316.7);
Tailwind
colors: {
  custom: {
    50: '#845a8f',
    500: '#501762',
    950: '#000000',
  },
}
SCSS
$custom: #501762;
$custom-light: #845a8f;
$custom-dark: #000000;
JSON
{
  "hex": "#501762",
  "rgb": {
    "r": 80,
    "g": 23,
    "b": 98
  },
  "hsl": {
    "h": 285.6,
    "s": 61.983,
    "l": 23.725
  },
  "oklch": {
    "l": 0.33439,
    "c": 0.13145,
    "h": 316.7
  },
  "luminance": 0.032
}

Semantic roles & 50–950 ramp

primary
#501762
secondary
#52993C
accent
#E5436A
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #501762

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

Preview Lab → · Contrast checker → · Palette generator →

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