#501D74#501D74

#501D74 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.143 H 307.3°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#501D74
RGBrgb(80, 29, 116)
HSLhsl(275, 60%, 28%)
HSVhsv(275, 75%, 45%)
CMYKcmyk(31%, 75%, 0%, 54.5%)
CIE-LABlab(23.15, 39.81, -39.97)
CIE-LCHlch(23.15, 56.42, 314.88°)
OKLaboklab(35.52% 0.0865 -0.1134)
OKLCHoklch(35.52% 0.143 307.3)
XYZxyz(6.8993, 3.8452, 16.8984)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501D74 #41741D
analogous
#241D74 #501D74 #741D6C
triadic
#501D74 #74501D #1D7450
tetradic
#501D74 #74241D #41741D #1D6C74
square
#501D74 #74241D #41741D #1D6C74
split-complementary
#501D74 #6C741D #1D7424
monochromatic
#110618 #2E1143 #501D74 #7229A5 #923DCE

Accessibility & contrast

On white

11.87
#501D74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#501D74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501D74
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501D74#FFFFFF#000000##FFFFFF
##501D741.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003577
Deuteranopia (green-blind)
#013872
Tritanopia (blue-blind)
#4A3146
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #501d74;
/* rgb */ color: rgb(80, 29, 116);
/* oklch */ color: oklch(35.5% 0.143 307.3);
Tailwind
colors: {
  custom: {
    50: '#855e9d',
    500: '#501d74',
    950: '#000000',
  },
}
SCSS
$custom: #501d74;
$custom-light: #855e9d;
$custom-dark: #000000;
JSON
{
  "hex": "#501d74",
  "rgb": {
    "r": 80,
    "g": 29,
    "b": 116
  },
  "hsl": {
    "h": 275.172,
    "s": 60,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35524,
    "c": 0.14266,
    "h": 307.3
  },
  "luminance": 0.03845
}

Semantic roles & 50–950 ramp

primary
#501D74
secondary
#6EA845
accent
#E34586
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #501D74

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

Preview Lab → · Contrast checker → · Palette generator →

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