#501F8C#501F8C

#501F8C is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.167 H 298.3°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#501F8C
RGBrgb(80, 31, 140)
HSLhsl(267, 64%, 34%)
HSVhsv(267, 78%, 55%)
CMYKcmyk(42.9%, 77.9%, 0%, 45.1%)
CIE-LABlab(25.50, 44.99, -51.31)
CIE-LCHlch(25.50, 68.24, 311.24°)
OKLaboklab(37.81% 0.0791 -0.1468)
OKLCHoklch(37.81% 0.167 298.3)
XYZxyz(8.5307, 4.5788, 25.2402)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501F8C #5B8C1F
analogous
#1F258C #501F8C #861F8C
triadic
#501F8C #8C501F #1F8C50
tetradic
#501F8C #8C1F25 #5B8C1F #1F8C86
square
#501F8C #8C1F25 #5B8C1F #1F8C86
split-complementary
#501F8C #8C861F #258C1F
monochromatic
#170928 #33145A #501F8C #6D2ABE #8C4ED8

Accessibility & contrast

On white

10.96
#501F8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#501F8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501F8C
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501F8C#FFFFFF#000000##FFFFFF
##501F8C1.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8F
Deuteranopia (green-blind)
#003B8A
Tritanopia (blue-blind)
#413C54
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #501f8c;
/* rgb */ color: rgb(80, 31, 140);
/* oklch */ color: oklch(37.8% 0.167 298.3);
Tailwind
colors: {
  custom: {
    50: '#8760af',
    500: '#501f8c',
    950: '#000000',
  },
}
SCSS
$custom: #501f8c;
$custom-light: #8760af;
$custom-dark: #000000;
JSON
{
  "hex": "#501f8c",
  "rgb": {
    "r": 80,
    "g": 31,
    "b": 140
  },
  "hsl": {
    "h": 266.972,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37809,
    "c": 0.16672,
    "h": 298.3
  },
  "luminance": 0.04579
}

Semantic roles & 50–950 ramp

primary
#501F8C
secondary
#89BB4C
accent
#E7419C
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #501F8C

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

Preview Lab → · Contrast checker → · Palette generator →

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