#501F7D#501F7D

#501F7D is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.5% C 0.150 H 303.4°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#501F7D
RGBrgb(80, 31, 125)
HSLhsl(271, 60%, 31%)
HSVhsv(271, 75%, 49%)
CMYKcmyk(36%, 75.2%, 0%, 51%)
CIE-LABlab(24.21, 41.12, -43.99)
CIE-LCHlch(24.21, 60.21, 313.07°)
OKLaboklab(36.5% 0.0827 -0.1253)
OKLCHoklch(36.5% 0.15 303.4)
XYZxyz(7.4991, 4.1661, 19.8071)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501F7D #4C7D1F
analogous
#211F7D #501F7D #7D1F7B
triadic
#501F7D #7D501F #1F7D50
tetradic
#501F7D #7D211F #4C7D1F #1F7B7D
square
#501F7D #7D211F #4C7D1F #1F7B7D
split-complementary
#501F7D #7B7D1F #1F7D21
monochromatic
#11071B #31134C #501F7D #6F2BAE #8E45D1

Accessibility & contrast

On white

11.46
#501F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #501F7D
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501F7D#FFFFFF#000000##FFFFFF
##501F7D1.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #501f7d;
/* rgb */ color: rgb(80, 31, 125);
/* oklch */ color: oklch(36.5% 0.150 303.4);
Tailwind
colors: {
  custom: {
    50: '#8660a3',
    500: '#501f7d',
    950: '#000000',
  },
}
SCSS
$custom: #501f7d;
$custom-light: #8660a3;
$custom-dark: #000000;
JSON
{
  "hex": "#501f7d",
  "rgb": {
    "r": 80,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 271.277,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36503,
    "c": 0.15009,
    "h": 303.4
  },
  "luminance": 0.04166
}

Semantic roles & 50–950 ramp

primary
#501F7D
secondary
#7AB048
accent
#E34491
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #501F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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