#501F72#501F72

#501F72 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.6% C 0.138 H 307.9°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#501F72
RGBrgb(80, 31, 114)
HSLhsl(275, 57%, 28%)
HSVhsv(275, 73%, 45%)
CMYKcmyk(29.8%, 72.8%, 0%, 55.3%)
CIE-LABlab(23.34, 38.35, -38.39)
CIE-LCHlch(23.34, 54.27, 314.98°)
OKLaboklab(35.61% 0.0846 -0.1088)
OKLCHoklch(35.61% 0.138 307.9)
XYZxyz(6.8349, 3.9005, 16.3091)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501F72 #41721F
analogous
#271F72 #501F72 #721F6A
triadic
#501F72 #72501F #1F7250
tetradic
#501F72 #72271F #41721F #1F6A72
square
#501F72 #72271F #41721F #1F6A72
split-complementary
#501F72 #6A721F #1F7227
monochromatic
#110718 #2E1242 #501F72 #722CA2 #9240CB

Accessibility & contrast

On white

11.80
#501F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#501F72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501F72
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501F72#FFFFFF#000000##FFFFFF
##501F721.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003674
Deuteranopia (green-blind)
#0A3870
Tritanopia (blue-blind)
#4B3146
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #501f72;
/* rgb */ color: rgb(80, 31, 114);
/* oklch */ color: oklch(35.6% 0.138 307.9);
Tailwind
colors: {
  custom: {
    50: '#855f9b',
    500: '#501f72',
    950: '#000000',
  },
}
SCSS
$custom: #501f72;
$custom-light: #855f9b;
$custom-dark: #000000;
JSON
{
  "hex": "#501f72",
  "rgb": {
    "r": 80,
    "g": 31,
    "b": 114
  },
  "hsl": {
    "h": 275.422,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35607,
    "c": 0.13782,
    "h": 307.9
  },
  "luminance": 0.039
}

Semantic roles & 50–950 ramp

primary
#501F72
secondary
#6EA647
accent
#E04786
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #501F72

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

Preview Lab → · Contrast checker → · Palette generator →

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