#501F78#501F78

#501F78 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.145 H 305.4°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#501F78
RGBrgb(80, 31, 120)
HSLhsl(273, 59%, 30%)
HSVhsv(273, 74%, 47%)
CMYKcmyk(33.3%, 74.2%, 0%, 52.9%)
CIE-LABlab(23.81, 39.85, -41.47)
CIE-LCHlch(23.81, 57.51, 313.86°)
OKLaboklab(36.09% 0.0836 -0.1179)
OKLCHoklch(36.09% 0.145 305.4)
XYZxyz(7.1877, 4.0416, 18.1671)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501F78 #47781F
analogous
#241F78 #501F78 #781F73
triadic
#501F78 #78501F #1F7850
tetradic
#501F78 #78241F #47781F #1F7378
square
#501F78 #78241F #47781F #1F7378
split-complementary
#501F78 #73781F #1F7824
monochromatic
#100618 #301247 #501F78 #702CA9 #9043CE

Accessibility & contrast

On white

11.61
#501F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #501F78
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501F78#FFFFFF#000000##FFFFFF
##501F781.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377B
Deuteranopia (green-blind)
#003976
Tritanopia (blue-blind)
#493449
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #501f78;
/* rgb */ color: rgb(80, 31, 120);
/* oklch */ color: oklch(36.1% 0.145 305.4);
Tailwind
colors: {
  custom: {
    50: '#855fa0',
    500: '#501f78',
    950: '#000000',
  },
}
SCSS
$custom: #501f78;
$custom-light: #855fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#501f78",
  "rgb": {
    "r": 80,
    "g": 31,
    "b": 120
  },
  "hsl": {
    "h": 273.034,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.36089,
    "c": 0.14451,
    "h": 305.4
  },
  "luminance": 0.04042
}

Semantic roles & 50–950 ramp

primary
#501F78
secondary
#74AB47
accent
#E2468C
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0B050F
muted
#7C797E

Preview Lab

Preview with #501F78

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

Preview Lab → · Contrast checker → · Palette generator →

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