#501FB4#501FB4

#501FB4 is a dark, highly saturated violet. Relative luminance 0.060; OKLCH L 41.7% C 0.210 H 288.4°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#501FB4
RGBrgb(80, 31, 180)
HSLhsl(260, 71%, 41%)
HSVhsv(260, 83%, 71%)
CMYKcmyk(55.6%, 82.8%, 0%, 29.4%)
CIE-LABlab(29.36, 55.54, -69.31)
CIE-LCHlch(29.36, 88.82, 308.71°)
OKLaboklab(41.66% 0.0662 -0.1995)
OKLCHoklch(41.66% 0.21 288.4)
XYZxyz(12.0340, 5.9801, 43.6913)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501FB4 #83B41F
analogous
#1F38B4 #501FB4 #9B1FB4
triadic
#501FB4 #B4501F #1FB450
tetradic
#501FB4 #B41F38 #83B41F #1FB49B
square
#501FB4 #B41F38 #83B41F #1FB49B
split-complementary
#501FB4 #B49B1F #38B41F
monochromatic
#220D4C #391680 #501FB4 #6B34DC #9168E5

Accessibility & contrast

On white

9.56
#501FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#501FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501FB4
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501FB4#FFFFFF#000000##FFFFFF
##501FB41.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B8
Deuteranopia (green-blind)
#0041B1
Tritanopia (blue-blind)
#254D6C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #501fb4;
/* rgb */ color: rgb(80, 31, 180);
/* oklch */ color: oklch(41.7% 0.210 288.4);
Tailwind
colors: {
  custom: {
    50: '#8d63cc',
    500: '#501fb4',
    950: '#000000',
  },
}
SCSS
$custom: #501fb4;
$custom-light: #8d63cc;
$custom-dark: #000000;
JSON
{
  "hex": "#501fb4",
  "rgb": {
    "r": 80,
    "g": 31,
    "b": 180
  },
  "hsl": {
    "h": 259.732,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41661,
    "c": 0.21016,
    "h": 288.4
  },
  "luminance": 0.05981
}

Semantic roles & 50–950 ramp

primary
#501FB4
secondary
#A9CB64
accent
#ED3AB3
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #501FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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