#501F7F#501F7F

#501F7F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.152 H 302.7°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#501F7F
RGBrgb(80, 31, 127)
HSLhsl(271, 61%, 31%)
HSVhsv(271, 76%, 50%)
CMYKcmyk(37%, 75.6%, 0%, 50.2%)
CIE-LABlab(24.38, 41.63, -44.99)
CIE-LCHlch(24.38, 61.29, 312.78°)
OKLaboklab(36.67% 0.0823 -0.1282)
OKLCHoklch(36.67% 0.152 302.7)
XYZxyz(7.6281, 4.2177, 20.4868)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501F7F #4E7F1F
analogous
#201F7F #501F7F #7F1F7E
triadic
#501F7F #7F501F #1F7F50
tetradic
#501F7F #7F201F #4E7F1F #1F7E7F
square
#501F7F #7F201F #4E7F1F #1F7E7F
split-complementary
#501F7F #7E7F1F #1F7F20
monochromatic
#12071D #31134E #501F7F #6F2BB0 #8E46D2

Accessibility & contrast

On white

11.39
#501F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #501F7F
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501F7F#FFFFFF#000000##FFFFFF
##501F7F1.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#003A7D
Tritanopia (blue-blind)
#46374D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #501f7f;
/* rgb */ color: rgb(80, 31, 127);
/* oklch */ color: oklch(36.7% 0.152 302.7);
Tailwind
colors: {
  custom: {
    50: '#8660a5',
    500: '#501f7f',
    950: '#000000',
  },
}
SCSS
$custom: #501f7f;
$custom-light: #8660a5;
$custom-dark: #000000;
JSON
{
  "hex": "#501f7f",
  "rgb": {
    "r": 80,
    "g": 31,
    "b": 127
  },
  "hsl": {
    "h": 270.625,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36672,
    "c": 0.15232,
    "h": 302.7
  },
  "luminance": 0.04218
}

Semantic roles & 50–950 ramp

primary
#501F7F
secondary
#7CB248
accent
#E44492
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #501F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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