#501F96#501F96

#501F96 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.178 H 295.4°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#501F96
RGBrgb(80, 31, 150)
HSLhsl(265, 66%, 35%)
HSVhsv(265, 79%, 59%)
CMYKcmyk(46.7%, 79.3%, 0%, 41.2%)
CIE-LABlab(26.41, 47.61, -56.00)
CIE-LCHlch(26.41, 73.50, 310.37°)
OKLaboklab(38.73% 0.0762 -0.1605)
OKLCHoklch(38.73% 0.178 295.4)
XYZxyz(9.3018, 4.8872, 29.3015)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501F96 #65961F
analogous
#1F2996 #501F96 #8B1F96
triadic
#501F96 #96501F #1F9650
tetradic
#501F96 #961F29 #65961F #1F968B
square
#501F96 #961F29 #65961F #1F968B
split-complementary
#501F96 #968B1F #29961F
monochromatic
#1A0A31 #351563 #501F96 #6B29C9 #8C54DC

Accessibility & contrast

On white

10.62
#501F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #501F96
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501F96#FFFFFF#000000##FFFFFF
##501F961.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F99
Deuteranopia (green-blind)
#003D94
Tritanopia (blue-blind)
#3C405A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #501f96;
/* rgb */ color: rgb(80, 31, 150);
/* oklch */ color: oklch(38.7% 0.178 295.4);
Tailwind
colors: {
  custom: {
    50: '#8961b6',
    500: '#501f96',
    950: '#000000',
  },
}
SCSS
$custom: #501f96;
$custom-light: #8961b6;
$custom-dark: #000000;
JSON
{
  "hex": "#501f96",
  "rgb": {
    "r": 80,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 264.706,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38727,
    "c": 0.17771,
    "h": 295.4
  },
  "luminance": 0.04887
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #501F96

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

Preview Lab → · Contrast checker → · Palette generator →

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