#501979#501979

#501979 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.153 H 305.9°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#501979
RGBrgb(80, 25, 121)
HSLhsl(274, 66%, 29%)
HSVhsv(274, 79%, 47%)
CMYKcmyk(33.9%, 79.3%, 0%, 52.5%)
CIE-LABlab(22.93, 42.82, -43.53)
CIE-LCHlch(22.93, 61.06, 314.53°)
OKLaboklab(35.5% 0.0895 -0.1239)
OKLCHoklch(35.5% 0.153 305.9)
XYZxyz(7.1063, 3.7813, 18.4409)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501979 #427919
analogous
#201979 #501979 #791972
triadic
#501979 #795019 #197950
tetradic
#501979 #792019 #427919 #197279
square
#501979 #792019 #427919 #197279
split-complementary
#501979 #727919 #197920
monochromatic
#110519 #2E0F46 #501979 #7223AC #9237D6

Accessibility & contrast

On white

11.96
#501979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#501979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501979
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501979#FFFFFF#000000##FFFFFF
##5019791.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #501979;
/* rgb */ color: rgb(80, 25, 121);
/* oklch */ color: oklch(35.5% 0.153 305.9);
Tailwind
colors: {
  custom: {
    50: '#865ca0',
    500: '#501979',
    950: '#000000',
  },
}
SCSS
$custom: #501979;
$custom-light: #865ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#501979",
  "rgb": {
    "r": 80,
    "g": 25,
    "b": 121
  },
  "hsl": {
    "h": 274.375,
    "s": 65.753,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35498,
    "c": 0.15283,
    "h": 305.9
  },
  "luminance": 0.03781
}

Semantic roles & 50–950 ramp

primary
#501979
secondary
#6FAE40
accent
#E93F88
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #501979

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

Preview Lab → · Contrast checker → · Palette generator →

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