#501D8C#501D8C

#501D8C is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.169 H 298.6°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#501D8C
RGBrgb(80, 29, 140)
HSLhsl(268, 66%, 33%)
HSVhsv(268, 79%, 55%)
CMYKcmyk(42.9%, 79.3%, 0%, 45.1%)
CIE-LABlab(25.19, 45.87, -51.81)
CIE-LCHlch(25.19, 69.20, 311.52°)
OKLaboklab(37.59% 0.0808 -0.1482)
OKLCHoklch(37.59% 0.169 298.6)
XYZxyz(8.4800, 4.4775, 25.2233)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501D8C #598C1D
analogous
#1D218C #501D8C #871D8C
triadic
#501D8C #8C501D #1D8C50
tetradic
#501D8C #8C1D21 #598C1D #1D8C87
square
#501D8C #8C1D21 #598C1D #1D8C87
split-complementary
#501D8C #8C871D #218C1D
monochromatic
#160827 #331259 #501D8C #6D28BF #8C4AD9

Accessibility & contrast

On white

11.08
#501D8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#501D8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501D8C
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501D8C#FFFFFF#000000##FFFFFF
##501D8C1.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#003B8A
Tritanopia (blue-blind)
#413B54
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #501d8c;
/* rgb */ color: rgb(80, 29, 140);
/* oklch */ color: oklch(37.6% 0.169 298.6);
Tailwind
colors: {
  custom: {
    50: '#875faf',
    500: '#501d8c',
    950: '#000000',
  },
}
SCSS
$custom: #501d8c;
$custom-light: #875faf;
$custom-dark: #000000;
JSON
{
  "hex": "#501d8c",
  "rgb": {
    "r": 80,
    "g": 29,
    "b": 140
  },
  "hsl": {
    "h": 267.568,
    "s": 65.68,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37594,
    "c": 0.16884,
    "h": 298.6
  },
  "luminance": 0.04478
}

Semantic roles & 50–950 ramp

primary
#501D8C
secondary
#87BC49
accent
#E93F9B
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #501D8C

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

Preview Lab → · Contrast checker → · Palette generator →

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