#501F8B#501F8B

#501F8B is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.166 H 298.6°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#501F8B
RGBrgb(80, 31, 139)
HSLhsl(267, 64%, 33%)
HSVhsv(267, 78%, 55%)
CMYKcmyk(42.4%, 77.7%, 0%, 45.5%)
CIE-LABlab(25.41, 44.73, -50.83)
CIE-LCHlch(25.41, 67.71, 311.35°)
OKLaboklab(37.72% 0.0794 -0.1454)
OKLCHoklch(37.72% 0.166 298.6)
XYZxyz(8.4573, 4.5494, 24.8536)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501F8B #5A8B1F
analogous
#1F248B #501F8B #861F8B
triadic
#501F8B #8B501F #1F8B50
tetradic
#501F8B #8B1F24 #5A8B1F #1F8B86
square
#501F8B #8B1F24 #5A8B1F #1F8B86
split-complementary
#501F8B #8B861F #248B1F
monochromatic
#160927 #331459 #501F8B #6D2ABD #8C4DD7

Accessibility & contrast

On white

10.99
#501F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#501F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501F8B
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501F8B#FFFFFF#000000##FFFFFF
##501F8B1.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003B89
Tritanopia (blue-blind)
#413C54
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #501f8b;
/* rgb */ color: rgb(80, 31, 139);
/* oklch */ color: oklch(37.7% 0.166 298.6);
Tailwind
colors: {
  custom: {
    50: '#8760ae',
    500: '#501f8b',
    950: '#000000',
  },
}
SCSS
$custom: #501f8b;
$custom-light: #8760ae;
$custom-dark: #000000;
JSON
{
  "hex": "#501f8b",
  "rgb": {
    "r": 80,
    "g": 31,
    "b": 139
  },
  "hsl": {
    "h": 267.222,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.3772,
    "c": 0.16562,
    "h": 298.6
  },
  "luminance": 0.0455
}

Semantic roles & 50–950 ramp

primary
#501F8B
secondary
#88BA4C
accent
#E7419C
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #501F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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