#501F52#501F52

#501F52 is a dark, moderate purple. Relative luminance 0.033; OKLCH L 33.4% C 0.103 H 326.0°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#501F52
RGBrgb(80, 31, 82)
HSLhsl(298, 45%, 22%)
HSVhsv(298, 62%, 32%)
CMYKcmyk(2.4%, 62.2%, 0%, 67.8%)
CIE-LABlab(21.19, 30.98, -20.81)
CIE-LCHlch(21.19, 37.32, 326.11°)
OKLaboklab(33.36% 0.0853 -0.0574)
OKLCHoklch(33.36% 0.103 326)
XYZxyz(5.3211, 3.2950, 8.3367)
Luminance0.0330 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501F52 #21521F
analogous
#371F52 #501F52 #521F3B
triadic
#501F52 #52501F #1F5250
tetradic
#501F52 #52371F #21521F #1F3B52
square
#501F52 #52371F #21521F #1F3B52
split-complementary
#501F52 #3B521F #1F5237
monochromatic
#160816 #250E26 #501F52 #7B307E #A741AB

Accessibility & contrast

On white

12.66
#501F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#501F52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501F52
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501F52#FFFFFF#000000##FFFFFF
##501F521.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182F54
Deuteranopia (green-blind)
#293551
Tritanopia (blue-blind)
#522535
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #501f52;
/* rgb */ color: rgb(80, 31, 82);
/* oklch */ color: oklch(33.4% 0.103 326.0);
Tailwind
colors: {
  custom: {
    50: '#835e83',
    500: '#501f52',
    950: '#000000',
  },
}
SCSS
$custom: #501f52;
$custom-light: #835e83;
$custom-dark: #000000;
JSON
{
  "hex": "#501f52",
  "rgb": {
    "r": 80,
    "g": 31,
    "b": 82
  },
  "hsl": {
    "h": 297.647,
    "s": 45.133,
    "l": 22.157
  },
  "oklch": {
    "l": 0.33364,
    "c": 0.10283,
    "h": 326
  },
  "luminance": 0.03295
}

Semantic roles & 50–950 ramp

primary
#501F52
secondary
#498746
accent
#D55358
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #501F52

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

Preview Lab → · Contrast checker → · Palette generator →

#501F52 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva