#501F71#501F71

#501F71 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.5% C 0.137 H 308.3°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#501F71
RGBrgb(80, 31, 113)
HSLhsl(276, 57%, 28%)
HSVhsv(276, 73%, 44%)
CMYKcmyk(29.2%, 72.6%, 0%, 55.7%)
CIE-LABlab(23.26, 38.11, -37.87)
CIE-LCHlch(23.26, 53.72, 315.18°)
OKLaboklab(35.53% 0.0847 -0.1073)
OKLCHoklch(35.53% 0.137 308.3)
XYZxyz(6.7783, 3.8778, 16.0110)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501F71 #40711F
analogous
#271F71 #501F71 #711F69
triadic
#501F71 #71501F #1F7150
tetradic
#501F71 #71271F #40711F #1F6971
square
#501F71 #71271F #40711F #1F6971
split-complementary
#501F71 #69711F #1F7127
monochromatic
#110718 #2E1241 #501F71 #722CA1 #9340CB

Accessibility & contrast

On white

11.83
#501F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#501F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501F71
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501F71#FFFFFF#000000##FFFFFF
##501F711.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003673
Deuteranopia (green-blind)
#0C386F
Tritanopia (blue-blind)
#4B3145
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #501f71;
/* rgb */ color: rgb(80, 31, 113);
/* oklch */ color: oklch(35.5% 0.137 308.3);
Tailwind
colors: {
  custom: {
    50: '#855f9a',
    500: '#501f71',
    950: '#000000',
  },
}
SCSS
$custom: #501f71;
$custom-light: #855f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#501f71",
  "rgb": {
    "r": 80,
    "g": 31,
    "b": 113
  },
  "hsl": {
    "h": 275.854,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35529,
    "c": 0.13669,
    "h": 308.3
  },
  "luminance": 0.03878
}

Semantic roles & 50–950 ramp

primary
#501F71
secondary
#6DA547
accent
#E04885
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #501F71

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

Preview Lab → · Contrast checker → · Palette generator →

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