#501B97#501B97

#501B97 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.4% C 0.183 H 295.6°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#501B97
RGBrgb(80, 27, 151)
HSLhsl(266, 70%, 35%)
HSVhsv(266, 82%, 59%)
CMYKcmyk(47%, 82.1%, 0%, 40.8%)
CIE-LABlab(25.93, 49.53, -57.40)
CIE-LCHlch(25.93, 75.82, 310.79°)
OKLaboklab(38.42% 0.0789 -0.1646)
OKLCHoklch(38.42% 0.183 295.6)
XYZxyz(9.2846, 4.7235, 29.6947)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501B97 #62971B
analogous
#1B2497 #501B97 #8E1B97
triadic
#501B97 #97501B #1B9750
tetradic
#501B97 #971B24 #62971B #1B978E
square
#501B97 #971B24 #62971B #1B978E
split-complementary
#501B97 #978E1B #24971B
monochromatic
#19082F #341263 #501B97 #6C24CB #8C4DDF

Accessibility & contrast

On white

10.80
#501B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#501B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501B97
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501B97#FFFFFF#000000##FFFFFF
##501B971.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9A
Deuteranopia (green-blind)
#003C95
Tritanopia (blue-blind)
#3C3F5A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #501b97;
/* rgb */ color: rgb(80, 27, 151);
/* oklch */ color: oklch(38.4% 0.183 295.6);
Tailwind
colors: {
  custom: {
    50: '#895fb7',
    500: '#501b97',
    950: '#000000',
  },
}
SCSS
$custom: #501b97;
$custom-light: #895fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#501b97",
  "rgb": {
    "r": 80,
    "g": 27,
    "b": 151
  },
  "hsl": {
    "h": 265.645,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38423,
    "c": 0.18256,
    "h": 295.6
  },
  "luminance": 0.04724
}

Semantic roles & 50–950 ramp

primary
#501B97
secondary
#8FC14C
accent
#EC3BA1
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #501B97

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

Preview Lab → · Contrast checker → · Palette generator →

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