#501F8E#501F8E

#501F8E is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.169 H 297.7°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#501F8E
RGBrgb(80, 31, 142)
HSLhsl(266, 64%, 34%)
HSVhsv(266, 78%, 56%)
CMYKcmyk(43.7%, 78.2%, 0%, 44.3%)
CIE-LABlab(25.68, 45.51, -52.26)
CIE-LCHlch(25.68, 69.30, 311.05°)
OKLaboklab(37.99% 0.0785 -0.1496)
OKLCHoklch(37.99% 0.169 297.7)
XYZxyz(8.6795, 4.6383, 26.0239)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501F8E #5D8E1F
analogous
#1F268E #501F8E #881F8E
triadic
#501F8E #8E501F #1F8E50
tetradic
#501F8E #8E1F26 #5D8E1F #1F8E88
square
#501F8E #8E1F26 #5D8E1F #1F8E88
split-complementary
#501F8E #8E881F #268E1F
monochromatic
#17092A #34145C #501F8E #6C2AC0 #8C4FD9

Accessibility & contrast

On white

10.89
#501F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#501F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501F8E
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501F8E#FFFFFF#000000##FFFFFF
##501F8E1.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#003C8C
Tritanopia (blue-blind)
#403D56
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #501f8e;
/* rgb */ color: rgb(80, 31, 142);
/* oklch */ color: oklch(38.0% 0.169 297.7);
Tailwind
colors: {
  custom: {
    50: '#8860b0',
    500: '#501f8e',
    950: '#000000',
  },
}
SCSS
$custom: #501f8e;
$custom-light: #8860b0;
$custom-dark: #000000;
JSON
{
  "hex": "#501f8e",
  "rgb": {
    "r": 80,
    "g": 31,
    "b": 142
  },
  "hsl": {
    "h": 266.486,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.3799,
    "c": 0.16893,
    "h": 297.7
  },
  "luminance": 0.04638
}

Semantic roles & 50–950 ramp

primary
#501F8E
secondary
#8BBB4D
accent
#E7419E
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #501F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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