#501752#501752

#501752 is a dark, moderate purple. Relative luminance 0.029; OKLCH L 32.3% C 0.116 H 326.4°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#501752
RGBrgb(80, 23, 82)
HSLhsl(298, 56%, 21%)
HSVhsv(298, 72%, 32%)
CMYKcmyk(2.4%, 72%, 0%, 67.8%)
CIE-LABlab(19.75, 34.95, -23.08)
CIE-LCHlch(19.75, 41.88, 326.56°)
OKLaboklab(32.32% 0.0964 -0.0639)
OKLCHoklch(32.32% 0.116 326.4)
XYZxyz(5.1376, 2.9278, 8.2755)
Luminance0.0293 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501752 #195217
analogous
#321752 #501752 #521736
triadic
#501752 #525017 #175250
tetradic
#501752 #523217 #195217 #173652
square
#501752 #523217 #195217 #173652
split-complementary
#501752 #365217 #175232
monochromatic
#170718 #210A22 #501752 #7F2482 #AD32B2

Accessibility & contrast

On white

13.25
#501752 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#501752 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501752
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501752#FFFFFF#000000##FFFFFF
##5017521.0013.251.5913.25
#FFFFFF13.251.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2B54
Deuteranopia (green-blind)
#243250
Tritanopia (blue-blind)
#522032
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #501752;
/* rgb */ color: rgb(80, 23, 82);
/* oklch */ color: oklch(32.3% 0.116 326.4);
Tailwind
colors: {
  custom: {
    50: '#835a83',
    500: '#501752',
    950: '#000000',
  },
}
SCSS
$custom: #501752;
$custom-light: #835a83;
$custom-dark: #000000;
JSON
{
  "hex": "#501752",
  "rgb": {
    "r": 80,
    "g": 23,
    "b": 82
  },
  "hsl": {
    "h": 297.966,
    "s": 56.19,
    "l": 20.588
  },
  "oklch": {
    "l": 0.32322,
    "c": 0.11566,
    "h": 326.4
  },
  "luminance": 0.02927
}

Semantic roles & 50–950 ramp

primary
#501752
secondary
#3E893C
accent
#DF484D
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #501752

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

Preview Lab → · Contrast checker → · Palette generator →

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