#501E97#501E97

#501E97 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.180 H 295.3°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#501E97
RGBrgb(80, 30, 151)
HSLhsl(265, 67%, 35%)
HSVhsv(265, 80%, 59%)
CMYKcmyk(47%, 80.1%, 0%, 40.8%)
CIE-LABlab(26.36, 48.30, -56.71)
CIE-LCHlch(26.36, 74.49, 310.42°)
OKLaboklab(38.72% 0.0767 -0.1626)
OKLCHoklch(38.72% 0.18 295.3)
XYZxyz(9.3569, 4.8681, 29.7188)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501E97 #65971E
analogous
#1E2997 #501E97 #8C1E97
triadic
#501E97 #97501E #1E9750
tetradic
#501E97 #971E29 #65971E #1E978C
square
#501E97 #971E29 #65971E #1E978C
split-complementary
#501E97 #978C1E #29971E
monochromatic
#1A0A31 #351464 #501E97 #6B28CA #8C53DD

Accessibility & contrast

On white

10.64
#501E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#501E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501E97
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501E97#FFFFFF#000000##FFFFFF
##501E971.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003C95
Tritanopia (blue-blind)
#3B405A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #501e97;
/* rgb */ color: rgb(80, 30, 151);
/* oklch */ color: oklch(38.7% 0.180 295.3);
Tailwind
colors: {
  custom: {
    50: '#8960b7',
    500: '#501e97',
    950: '#000000',
  },
}
SCSS
$custom: #501e97;
$custom-light: #8960b7;
$custom-dark: #000000;
JSON
{
  "hex": "#501e97",
  "rgb": {
    "r": 80,
    "g": 30,
    "b": 151
  },
  "hsl": {
    "h": 264.793,
    "s": 66.851,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38717,
    "c": 0.17978,
    "h": 295.3
  },
  "luminance": 0.04868
}

Semantic roles & 50–950 ramp

primary
#501E97
secondary
#92C051
accent
#EA3EA3
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #501E97

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

Preview Lab → · Contrast checker → · Palette generator →

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