#501B7C#501B7C

#501B7C is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.154 H 304.4°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#501B7C
RGBrgb(80, 27, 124)
HSLhsl(273, 64%, 30%)
HSVhsv(273, 78%, 49%)
CMYKcmyk(35.5%, 78.2%, 0%, 51.4%)
CIE-LABlab(23.49, 42.69, -44.54)
CIE-LCHlch(23.49, 61.69, 313.79°)
OKLaboklab(35.97% 0.0869 -0.1268)
OKLCHoklch(35.97% 0.154 304.4)
XYZxyz(7.3375, 3.9446, 19.4397)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501B7C #477C1B
analogous
#201B7C #501B7C #7C1B77
triadic
#501B7C #7C501B #1B7C50
tetradic
#501B7C #7C201B #477C1B #1B777C
square
#501B7C #7C201B #477C1B #1B777C
split-complementary
#501B7C #777C1B #1B7C20
monochromatic
#100519 #30104A #501B7C #7026AE #903DD5

Accessibility & contrast

On white

11.74
#501B7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#501B7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501B7C
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501B7C#FFFFFF#000000##FFFFFF
##501B7C1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#00387A
Tritanopia (blue-blind)
#47334A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #501b7c;
/* rgb */ color: rgb(80, 27, 124);
/* oklch */ color: oklch(36.0% 0.154 304.4);
Tailwind
colors: {
  custom: {
    50: '#865da3',
    500: '#501b7c',
    950: '#000000',
  },
}
SCSS
$custom: #501b7c;
$custom-light: #865da3;
$custom-dark: #000000;
JSON
{
  "hex": "#501b7c",
  "rgb": {
    "r": 80,
    "g": 27,
    "b": 124
  },
  "hsl": {
    "h": 272.784,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.35965,
    "c": 0.15376,
    "h": 304.4
  },
  "luminance": 0.03945
}

Semantic roles & 50–950 ramp

primary
#501B7C
secondary
#74B043
accent
#E7418C
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #501B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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