#501F97#501F97

#501F97 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.179 H 295.1°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#501F97
RGBrgb(80, 31, 151)
HSLhsl(265, 66%, 36%)
HSVhsv(265, 79%, 59%)
CMYKcmyk(47%, 79.5%, 0%, 40.8%)
CIE-LABlab(26.50, 47.87, -56.46)
CIE-LCHlch(26.50, 74.03, 310.29°)
OKLaboklab(38.82% 0.0759 -0.1619)
OKLCHoklch(38.82% 0.179 295.1)
XYZxyz(9.3827, 4.9196, 29.7274)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501F97 #66971F
analogous
#1F2A97 #501F97 #8C1F97
triadic
#501F97 #97501F #1F9750
tetradic
#501F97 #971F2A #66971F #1F978C
square
#501F97 #971F2A #66971F #1F978C
split-complementary
#501F97 #978C1F #2A971F
monochromatic
#1A0A31 #351564 #501F97 #6B29CA #8C54DC

Accessibility & contrast

On white

10.58
#501F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#501F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501F97
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501F97#FFFFFF#000000##FFFFFF
##501F971.0010.581.9810.58
#FFFFFF10.581.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#003D95
Tritanopia (blue-blind)
#3B415B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #501f97;
/* rgb */ color: rgb(80, 31, 151);
/* oklch */ color: oklch(38.8% 0.179 295.1);
Tailwind
colors: {
  custom: {
    50: '#8961b7',
    500: '#501f97',
    950: '#000000',
  },
}
SCSS
$custom: #501f97;
$custom-light: #8961b7;
$custom-dark: #000000;
JSON
{
  "hex": "#501f97",
  "rgb": {
    "r": 80,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 264.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.38821,
    "c": 0.17881,
    "h": 295.1
  },
  "luminance": 0.0492
}

Semantic roles & 50–950 ramp

primary
#501F97
secondary
#93BF52
accent
#E93FA3
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #501F97

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

Preview Lab → · Contrast checker → · Palette generator →

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