#501F79#501F79

#501F79 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.2% C 0.146 H 305.0°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#501F79
RGBrgb(80, 31, 121)
HSLhsl(273, 59%, 30%)
HSVhsv(273, 74%, 47%)
CMYKcmyk(33.9%, 74.4%, 0%, 52.5%)
CIE-LABlab(23.89, 40.10, -41.98)
CIE-LCHlch(23.89, 58.05, 313.69°)
OKLaboklab(36.17% 0.0834 -0.1193)
OKLCHoklch(36.17% 0.146 305)
XYZxyz(7.2487, 4.0660, 18.4884)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501F79 #48791F
analogous
#231F79 #501F79 #791F75
triadic
#501F79 #79501F #1F7950
tetradic
#501F79 #79231F #48791F #1F7579
square
#501F79 #79231F #48791F #1F7579
split-complementary
#501F79 #75791F #1F7923
monochromatic
#100618 #301348 #501F79 #702BAA #8F43CF

Accessibility & contrast

On white

11.58
#501F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#501F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501F79
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501F79#FFFFFF#000000##FFFFFF
##501F791.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387C
Deuteranopia (green-blind)
#003977
Tritanopia (blue-blind)
#48344A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #501f79;
/* rgb */ color: rgb(80, 31, 121);
/* oklch */ color: oklch(36.2% 0.146 305.0);
Tailwind
colors: {
  custom: {
    50: '#855fa0',
    500: '#501f79',
    950: '#000000',
  },
}
SCSS
$custom: #501f79;
$custom-light: #855fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#501f79",
  "rgb": {
    "r": 80,
    "g": 31,
    "b": 121
  },
  "hsl": {
    "h": 272.667,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.36171,
    "c": 0.14563,
    "h": 305
  },
  "luminance": 0.04066
}

Semantic roles & 50–950 ramp

primary
#501F79
secondary
#75AC47
accent
#E2458D
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0B050F
muted
#7C797E

Preview Lab

Preview with #501F79

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

Preview Lab → · Contrast checker → · Palette generator →

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