#501F8A#501F8A

#501F8A is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.165 H 298.9°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#501F8A
RGBrgb(80, 31, 138)
HSLhsl(267, 63%, 33%)
HSVhsv(267, 78%, 54%)
CMYKcmyk(42%, 77.5%, 0%, 45.9%)
CIE-LABlab(25.32, 44.47, -50.35)
CIE-LCHlch(25.32, 67.18, 311.45°)
OKLaboklab(37.63% 0.0796 -0.144)
OKLCHoklch(37.63% 0.165 298.9)
XYZxyz(8.3845, 4.5203, 24.4706)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501F8A #598A1F
analogous
#1F238A #501F8A #851F8A
triadic
#501F8A #8A501F #1F8A50
tetradic
#501F8A #8A1F23 #598A1F #1F8A85
square
#501F8A #8A1F23 #598A1F #1F8A85
split-complementary
#501F8A #8A851F #238A1F
monochromatic
#160926 #331458 #501F8A #6D2ABC #8C4CD7

Accessibility & contrast

On white

11.03
#501F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#501F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501F8A
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501F8A#FFFFFF#000000##FFFFFF
##501F8A1.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003B88
Tritanopia (blue-blind)
#423B53
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #501f8a;
/* rgb */ color: rgb(80, 31, 138);
/* oklch */ color: oklch(37.6% 0.165 298.9);
Tailwind
colors: {
  custom: {
    50: '#8760ad',
    500: '#501f8a',
    950: '#000000',
  },
}
SCSS
$custom: #501f8a;
$custom-light: #8760ad;
$custom-dark: #000000;
JSON
{
  "hex": "#501f8a",
  "rgb": {
    "r": 80,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 267.477,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3763,
    "c": 0.16452,
    "h": 298.9
  },
  "luminance": 0.0452
}

Semantic roles & 50–950 ramp

primary
#501F8A
secondary
#87BA4B
accent
#E6419B
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #501F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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