#501252#501252

#501252 is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.8% C 0.122 H 326.6°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#501252
RGBrgb(80, 18, 82)
HSLhsl(298, 64%, 20%)
HSVhsv(298, 78%, 32%)
CMYKcmyk(2.4%, 78%, 0%, 67.8%)
CIE-LABlab(19.00, 37.06, -24.26)
CIE-LCHlch(19.00, 44.30, 326.79°)
OKLaboklab(31.78% 0.1023 -0.0673)
OKLCHoklch(31.78% 0.122 326.6)
XYZxyz(5.0475, 2.7476, 8.2455)
Luminance0.0275 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501252 #145212
analogous
#301252 #501252 #521234
triadic
#501252 #525012 #125250
tetradic
#501252 #523012 #145212 #123452
square
#501252 #523012 #145212 #123452
split-complementary
#501252 #345212 #125230
monochromatic
#180619 #1F0720 #501252 #811D84 #B228B6

Accessibility & contrast

On white

13.55
#501252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#501252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501252
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501252#FFFFFF#000000##FFFFFF
##5012521.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042954
Deuteranopia (green-blind)
#213150
Tritanopia (blue-blind)
#521C31
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #501252;
/* rgb */ color: rgb(80, 18, 82);
/* oklch */ color: oklch(31.8% 0.122 326.6);
Tailwind
colors: {
  custom: {
    50: '#845783',
    500: '#501252',
    950: '#000000',
  },
}
SCSS
$custom: #501252;
$custom-light: #845783;
$custom-dark: #000000;
JSON
{
  "hex": "#501252",
  "rgb": {
    "r": 80,
    "g": 18,
    "b": 82
  },
  "hsl": {
    "h": 298.125,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.31784,
    "c": 0.12248,
    "h": 326.6
  },
  "luminance": 0.02747
}

Semantic roles & 50–950 ramp

primary
#501252
secondary
#388B35
accent
#E74146
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #501252

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

Preview Lab → · Contrast checker → · Palette generator →

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