#501F68#501F68

#501F68 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 34.8% C 0.127 H 312.6°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#501F68
RGBrgb(80, 31, 104)
HSLhsl(280, 54%, 26%)
HSVhsv(280, 70%, 41%)
CMYKcmyk(23.1%, 70.2%, 0%, 59.2%)
CIE-LABlab(22.60, 35.93, -33.11)
CIE-LCHlch(22.60, 48.86, 317.34°)
OKLaboklab(34.85% 0.0857 -0.0933)
OKLCHoklch(34.85% 0.127 312.6)
XYZxyz(6.2965, 3.6851, 13.4736)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501F68 #37681F
analogous
#2C1F68 #501F68 #681F5C
triadic
#501F68 #68501F #1F6850
tetradic
#501F68 #682C1F #37681F #1F5C68
square
#501F68 #682C1F #37681F #1F5C68
split-complementary
#501F68 #5C681F #1F682C
monochromatic
#120718 #2C1139 #501F68 #742D97 #983CC5

Accessibility & contrast

On white

12.09
#501F68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#501F68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501F68
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501F68#FFFFFF#000000##FFFFFF
##501F681.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336A
Deuteranopia (green-blind)
#193766
Tritanopia (blue-blind)
#4D2E40
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #501f68;
/* rgb */ color: rgb(80, 31, 104);
/* oklch */ color: oklch(34.8% 0.127 312.6);
Tailwind
colors: {
  custom: {
    50: '#845f94',
    500: '#501f68',
    950: '#000000',
  },
}
SCSS
$custom: #501f68;
$custom-light: #845f94;
$custom-dark: #000000;
JSON
{
  "hex": "#501f68",
  "rgb": {
    "r": 80,
    "g": 31,
    "b": 104
  },
  "hsl": {
    "h": 280.274,
    "s": 54.074,
    "l": 26.471
  },
  "oklch": {
    "l": 0.34845,
    "c": 0.12665,
    "h": 312.6
  },
  "luminance": 0.03685
}

Semantic roles & 50–950 ramp

primary
#501F68
secondary
#639C46
accent
#DD4A7B
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #501F68

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

Preview Lab → · Contrast checker → · Palette generator →

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