#501F6A#501F6A

#501F6A is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.0% C 0.129 H 311.6°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#501F6A
RGBrgb(80, 31, 106)
HSLhsl(279, 55%, 27%)
HSVhsv(279, 71%, 42%)
CMYKcmyk(24.5%, 70.8%, 0%, 58.4%)
CIE-LABlab(22.74, 36.40, -34.18)
CIE-LCHlch(22.74, 49.94, 316.81°)
OKLaboklab(34.99% 0.0855 -0.0964)
OKLCHoklch(34.99% 0.129 311.6)
XYZxyz(6.3993, 3.7262, 14.0150)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501F6A #396A1F
analogous
#2B1F6A #501F6A #6A1F5F
triadic
#501F6A #6A501F #1F6A50
tetradic
#501F6A #6A2B1F #396A1F #1F5F6A
square
#501F6A #6A2B1F #396A1F #1F5F6A
split-complementary
#501F6A #5F6A1F #1F6A2B
monochromatic
#120718 #2C113B #501F6A #742D99 #973DC6

Accessibility & contrast

On white

12.03
#501F6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#501F6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501F6A
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501F6A#FFFFFF#000000##FFFFFF
##501F6A1.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346C
Deuteranopia (green-blind)
#173768
Tritanopia (blue-blind)
#4D2E41
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #501f6a;
/* rgb */ color: rgb(80, 31, 106);
/* oklch */ color: oklch(35.0% 0.129 311.6);
Tailwind
colors: {
  custom: {
    50: '#845f95',
    500: '#501f6a',
    950: '#000000',
  },
}
SCSS
$custom: #501f6a;
$custom-light: #845f95;
$custom-dark: #000000;
JSON
{
  "hex": "#501f6a",
  "rgb": {
    "r": 80,
    "g": 31,
    "b": 106
  },
  "hsl": {
    "h": 279.2,
    "s": 54.745,
    "l": 26.863
  },
  "oklch": {
    "l": 0.34993,
    "c": 0.12888,
    "h": 311.6
  },
  "luminance": 0.03726
}

Semantic roles & 50–950 ramp

primary
#501F6A
secondary
#659E47
accent
#DE4A7D
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #501F6A

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

Preview Lab → · Contrast checker → · Palette generator →

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