#501F8F#501F8F

#501F8F is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.170 H 297.4°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#501F8F
RGBrgb(80, 31, 143)
HSLhsl(266, 64%, 34%)
HSVhsv(266, 78%, 56%)
CMYKcmyk(44.1%, 78.3%, 0%, 43.9%)
CIE-LABlab(25.77, 45.77, -52.73)
CIE-LCHlch(25.77, 69.83, 310.96°)
OKLaboklab(38.08% 0.0783 -0.1509)
OKLCHoklch(38.08% 0.17 297.4)
XYZxyz(8.7549, 4.6684, 26.4211)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501F8F #5E8F1F
analogous
#1F268F #501F8F #881F8F
triadic
#501F8F #8F501F #1F8F50
tetradic
#501F8F #8F1F26 #5E8F1F #1F8F88
square
#501F8F #8F1F26 #5E8F1F #1F8F88
split-complementary
#501F8F #8F881F #268F1F
monochromatic
#18092A #34145D #501F8F #6C2AC1 #8C4FD9

Accessibility & contrast

On white

10.86
#501F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #501F8F
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501F8F#FFFFFF#000000##FFFFFF
##501F8F1.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #501f8f;
/* rgb */ color: rgb(80, 31, 143);
/* oklch */ color: oklch(38.1% 0.170 297.4);
Tailwind
colors: {
  custom: {
    50: '#8860b1',
    500: '#501f8f',
    950: '#000000',
  },
}
SCSS
$custom: #501f8f;
$custom-light: #8860b1;
$custom-dark: #000000;
JSON
{
  "hex": "#501f8f",
  "rgb": {
    "r": 80,
    "g": 31,
    "b": 143
  },
  "hsl": {
    "h": 266.25,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38081,
    "c": 0.17003,
    "h": 297.4
  },
  "luminance": 0.04669
}

Semantic roles & 50–950 ramp

primary
#501F8F
secondary
#8CBC4E
accent
#E7409E
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #501F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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