#501B52#501B52

#501B52 is a dark, moderate purple. Relative luminance 0.031; OKLCH L 32.8% C 0.110 H 326.3°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#501B52
RGBrgb(80, 27, 82)
HSLhsl(298, 50%, 21%)
HSVhsv(298, 67%, 32%)
CMYKcmyk(2.4%, 67.1%, 0%, 67.8%)
CIE-LABlab(20.44, 33.04, -21.99)
CIE-LCHlch(20.44, 39.69, 326.35°)
OKLaboklab(32.82% 0.0911 -0.0608)
OKLCHoklch(32.82% 0.11 326.3)
XYZxyz(5.2231, 3.0989, 8.3040)
Luminance0.0310 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501B52 #1D521B
analogous
#351B52 #501B52 #521B39
triadic
#501B52 #52501B #1B5250
tetradic
#501B52 #52351B #1D521B #1B3952
square
#501B52 #52351B #1D521B #1B3952
split-complementary
#501B52 #39521B #1B5235
monochromatic
#160817 #230C24 #501B52 #7D2A80 #AA39AE

Accessibility & contrast

On white

12.96
#501B52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#501B52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501B52
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501B52#FFFFFF#000000##FFFFFF
##501B521.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132D54
Deuteranopia (green-blind)
#263451
Tritanopia (blue-blind)
#522233
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #501b52;
/* rgb */ color: rgb(80, 27, 82);
/* oklch */ color: oklch(32.8% 0.110 326.3);
Tailwind
colors: {
  custom: {
    50: '#835c83',
    500: '#501b52',
    950: '#000000',
  },
}
SCSS
$custom: #501b52;
$custom-light: #835c83;
$custom-dark: #000000;
JSON
{
  "hex": "#501b52",
  "rgb": {
    "r": 80,
    "g": 27,
    "b": 82
  },
  "hsl": {
    "h": 297.818,
    "s": 50.459,
    "l": 21.373
  },
  "oklch": {
    "l": 0.32816,
    "c": 0.10951,
    "h": 326.3
  },
  "luminance": 0.03099
}

Semantic roles & 50–950 ramp

primary
#501B52
secondary
#448841
accent
#DA4E53
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #501B52

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

Preview Lab → · Contrast checker → · Palette generator →

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