#501F7C#501F7C

#501F7C is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.149 H 303.8°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#501F7C
RGBrgb(80, 31, 124)
HSLhsl(272, 60%, 30%)
HSVhsv(272, 75%, 49%)
CMYKcmyk(35.5%, 75%, 0%, 51.4%)
CIE-LABlab(24.13, 40.86, -43.49)
CIE-LCHlch(24.13, 59.67, 313.22°)
OKLaboklab(36.42% 0.0829 -0.1238)
OKLCHoklch(36.42% 0.149 303.8)
XYZxyz(7.4355, 4.1407, 19.4724)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501F7C #4B7C1F
analogous
#211F7C #501F7C #7C1F79
triadic
#501F7C #7C501F #1F7C50
tetradic
#501F7C #7C211F #4B7C1F #1F797C
square
#501F7C #7C211F #4B7C1F #1F797C
split-complementary
#501F7C #797C1F #1F7C21
monochromatic
#11071A #30134B #501F7C #702BAD #8E45D0

Accessibility & contrast

On white

11.49
#501F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#501F7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501F7C
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501F7C#FFFFFF#000000##FFFFFF
##501F7C1.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#00397A
Tritanopia (blue-blind)
#47354B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #501f7c;
/* rgb */ color: rgb(80, 31, 124);
/* oklch */ color: oklch(36.4% 0.149 303.8);
Tailwind
colors: {
  custom: {
    50: '#8660a3',
    500: '#501f7c',
    950: '#000000',
  },
}
SCSS
$custom: #501f7c;
$custom-light: #8660a3;
$custom-dark: #000000;
JSON
{
  "hex": "#501f7c",
  "rgb": {
    "r": 80,
    "g": 31,
    "b": 124
  },
  "hsl": {
    "h": 271.613,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.3642,
    "c": 0.14898,
    "h": 303.8
  },
  "luminance": 0.04141
}

Semantic roles & 50–950 ramp

primary
#501F7C
secondary
#79AF48
accent
#E34590
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #501F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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