#501474#501474

#501474 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.153 H 308.5°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#501474
RGBrgb(80, 20, 116)
HSLhsl(278, 71%, 27%)
HSVhsv(278, 83%, 45%)
CMYKcmyk(31%, 82.8%, 0%, 54.5%)
CIE-LABlab(21.82, 43.61, -42.13)
CIE-LCHlch(21.82, 60.64, 315.99°)
OKLaboklab(34.59% 0.0953 -0.1197)
OKLCHoklch(34.59% 0.153 308.5)
XYZxyz(6.7102, 3.4669, 16.8353)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501474 #387414
analogous
#201474 #501474 #741468
triadic
#501474 #745014 #147450
tetradic
#501474 #742014 #387414 #146874
square
#501474 #742014 #387414 #146874
split-complementary
#501474 #687414 #147420
monochromatic
#12051A #2C0B40 #501474 #741DA8 #9728DA

Accessibility & contrast

On white

12.40
#501474 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#501474 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501474
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501474#FFFFFF#000000##FFFFFF
##5014741.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003277
Deuteranopia (green-blind)
#003572
Tritanopia (blue-blind)
#4A2D44
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #501474;
/* rgb */ color: rgb(80, 20, 116);
/* oklch */ color: oklch(34.6% 0.153 308.5);
Tailwind
colors: {
  custom: {
    50: '#855a9d',
    500: '#501474',
    950: '#000000',
  },
}
SCSS
$custom: #501474;
$custom-light: #855a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#501474",
  "rgb": {
    "r": 80,
    "g": 20,
    "b": 116
  },
  "hsl": {
    "h": 277.5,
    "s": 70.588,
    "l": 26.667
  },
  "oklch": {
    "l": 0.34588,
    "c": 0.15301,
    "h": 308.5
  },
  "luminance": 0.03467
}

Semantic roles & 50–950 ramp

primary
#501474
secondary
#64AA3A
accent
#ED3A7E
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #501474

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

Preview Lab → · Contrast checker → · Palette generator →

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