#501C8E#501C8E

#501C8E is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.172 H 298.1°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#501C8E
RGBrgb(80, 28, 142)
HSLhsl(267, 67%, 33%)
HSVhsv(267, 80%, 56%)
CMYKcmyk(43.7%, 80.3%, 0%, 44.3%)
CIE-LABlab(25.23, 46.81, -53.00)
CIE-LCHlch(25.23, 70.71, 311.45°)
OKLaboklab(37.67% 0.0811 -0.1517)
OKLCHoklch(37.67% 0.172 298.1)
XYZxyz(8.6047, 4.4888, 25.9990)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501C8E #5A8E1C
analogous
#1C218E #501C8E #891C8E
triadic
#501C8E #8E501C #1C8E50
tetradic
#501C8E #8E1C21 #5A8E1C #1C8E89
square
#501C8E #8E1C21 #5A8E1C #1C8E89
split-complementary
#501C8E #8E891C #218E1C
monochromatic
#160828 #33125B #501C8E #6D26C1 #8C49DB

Accessibility & contrast

On white

11.07
#501C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #501C8E
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501C8E#FFFFFF#000000##FFFFFF
##501C8E1.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#003B8C
Tritanopia (blue-blind)
#403B55
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #501c8e;
/* rgb */ color: rgb(80, 28, 142);
/* oklch */ color: oklch(37.7% 0.172 298.1);
Tailwind
colors: {
  custom: {
    50: '#885fb0',
    500: '#501c8e',
    950: '#000000',
  },
}
SCSS
$custom: #501c8e;
$custom-light: #885fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#501c8e",
  "rgb": {
    "r": 80,
    "g": 28,
    "b": 142
  },
  "hsl": {
    "h": 267.368,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.37674,
    "c": 0.17201,
    "h": 298.1
  },
  "luminance": 0.04489
}

Semantic roles & 50–950 ramp

primary
#501C8E
secondary
#88BD49
accent
#EA3E9B
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #501C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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