#501978#501978

#501978 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.152 H 306.3°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#501978
RGBrgb(80, 25, 120)
HSLhsl(275, 66%, 28%)
HSVhsv(275, 79%, 47%)
CMYKcmyk(33.3%, 79.2%, 0%, 52.9%)
CIE-LABlab(22.85, 42.57, -43.02)
CIE-LCHlch(22.85, 60.53, 314.70°)
OKLaboklab(35.41% 0.0898 -0.1224)
OKLCHoklch(35.41% 0.152 306.3)
XYZxyz(7.0453, 3.7569, 18.1197)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501978 #417819
analogous
#201978 #501978 #781970
triadic
#501978 #785019 #197850
tetradic
#501978 #782019 #417819 #197078
square
#501978 #782019 #417819 #197078
split-complementary
#501978 #707819 #197820
monochromatic
#110519 #2E0E45 #501978 #7224AB #9236D5

Accessibility & contrast

On white

11.99
#501978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#501978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501978
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501978#FFFFFF#000000##FFFFFF
##5019781.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357B
Deuteranopia (green-blind)
#003776
Tritanopia (blue-blind)
#493148
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #501978;
/* rgb */ color: rgb(80, 25, 120);
/* oklch */ color: oklch(35.4% 0.152 306.3);
Tailwind
colors: {
  custom: {
    50: '#865ca0',
    500: '#501978',
    950: '#000000',
  },
}
SCSS
$custom: #501978;
$custom-light: #865ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#501978",
  "rgb": {
    "r": 80,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 274.737,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35412,
    "c": 0.15177,
    "h": 306.3
  },
  "luminance": 0.03757
}

Semantic roles & 50–950 ramp

primary
#501978
secondary
#6EAD40
accent
#E83F87
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040F
muted
#7D797E

Preview Lab

Preview with #501978

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

Preview Lab → · Contrast checker → · Palette generator →

#501978 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva