#501F7E#501F7E

#501F7E is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.151 H 303.0°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#501F7E
RGBrgb(80, 31, 126)
HSLhsl(271, 61%, 31%)
HSVhsv(271, 75%, 49%)
CMYKcmyk(36.5%, 75.4%, 0%, 50.6%)
CIE-LABlab(24.30, 41.37, -44.49)
CIE-LCHlch(24.30, 60.75, 312.92°)
OKLaboklab(36.59% 0.0825 -0.1267)
OKLCHoklch(36.59% 0.151 303)
XYZxyz(7.5633, 4.1918, 20.1453)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501F7E #4D7E1F
analogous
#201F7E #501F7E #7E1F7C
triadic
#501F7E #7E501F #1F7E50
tetradic
#501F7E #7E201F #4D7E1F #1F7C7E
square
#501F7E #7E201F #4D7E1F #1F7C7E
split-complementary
#501F7E #7C7E1F #1F7E20
monochromatic
#12071C #31134D #501F7E #6F2BAF #8E46D1

Accessibility & contrast

On white

11.42
#501F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#501F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501F7E
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501F7E#FFFFFF#000000##FFFFFF
##501F7E1.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#00397C
Tritanopia (blue-blind)
#47364D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #501f7e;
/* rgb */ color: rgb(80, 31, 126);
/* oklch */ color: oklch(36.6% 0.151 303.0);
Tailwind
colors: {
  custom: {
    50: '#8660a4',
    500: '#501f7e',
    950: '#000000',
  },
}
SCSS
$custom: #501f7e;
$custom-light: #8660a4;
$custom-dark: #000000;
JSON
{
  "hex": "#501f7e",
  "rgb": {
    "r": 80,
    "g": 31,
    "b": 126
  },
  "hsl": {
    "h": 270.947,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36588,
    "c": 0.1512,
    "h": 303
  },
  "luminance": 0.04192
}

Semantic roles & 50–950 ramp

primary
#501F7E
secondary
#7BB148
accent
#E44491
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #501F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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