#501F7A#501F7A

#501F7A is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.147 H 304.6°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#501F7A
RGBrgb(80, 31, 122)
HSLhsl(272, 59%, 30%)
HSVhsv(272, 75%, 48%)
CMYKcmyk(34.4%, 74.6%, 0%, 52.2%)
CIE-LABlab(23.97, 40.36, -42.48)
CIE-LCHlch(23.97, 58.60, 313.53°)
OKLaboklab(36.25% 0.0833 -0.1208)
OKLCHoklch(36.25% 0.147 304.6)
XYZxyz(7.3103, 4.0906, 18.8130)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501F7A #497A1F
analogous
#231F7A #501F7A #7A1F76
triadic
#501F7A #7A501F #1F7A50
tetradic
#501F7A #7A231F #497A1F #1F767A
square
#501F7A #7A231F #497A1F #1F767A
split-complementary
#501F7A #767A1F #1F7A23
monochromatic
#100618 #301349 #501F7A #702BAB #8F44CF

Accessibility & contrast

On white

11.55
#501F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#501F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501F7A
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501F7A#FFFFFF#000000##FFFFFF
##501F7A1.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387D
Deuteranopia (green-blind)
#003978
Tritanopia (blue-blind)
#48354A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #501f7a;
/* rgb */ color: rgb(80, 31, 122);
/* oklch */ color: oklch(36.3% 0.147 304.6);
Tailwind
colors: {
  custom: {
    50: '#855fa1',
    500: '#501f7a',
    950: '#000000',
  },
}
SCSS
$custom: #501f7a;
$custom-light: #855fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#501f7a",
  "rgb": {
    "r": 80,
    "g": 31,
    "b": 122
  },
  "hsl": {
    "h": 272.308,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.36254,
    "c": 0.14674,
    "h": 304.6
  },
  "luminance": 0.04091
}

Semantic roles & 50–950 ramp

primary
#501F7A
secondary
#76AD47
accent
#E3458E
background
#F8F5FA
surface
#F0EAF3
border
#CBC6CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #501F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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