#501790#501790

#501790 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.4% C 0.179 H 298.1°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#501790
RGBrgb(80, 23, 144)
HSLhsl(268, 72%, 33%)
HSVhsv(268, 84%, 56%)
CMYKcmyk(44.4%, 84%, 0%, 43.5%)
CIE-LABlab(24.74, 49.28, -55.04)
CIE-LCHlch(24.74, 73.88, 311.84°)
OKLaboklab(37.39% 0.0842 -0.1577)
OKLCHoklch(37.39% 0.179 298.1)
XYZxyz(8.6474, 4.3317, 26.7607)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501790 #579017
analogous
#171B90 #501790 #8C1790
triadic
#501790 #905017 #179050
tetradic
#501790 #90171B #579017 #17908C
square
#501790 #90171B #579017 #17908C
split-complementary
#501790 #908C17 #1B9017
monochromatic
#150626 #330F5B #501790 #6D1FC5 #8C41E1

Accessibility & contrast

On white

11.25
#501790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#501790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501790
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501790#FFFFFF#000000##FFFFFF
##5017901.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B93
Deuteranopia (green-blind)
#00398E
Tritanopia (blue-blind)
#3F3A55
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #501790;
/* rgb */ color: rgb(80, 23, 144);
/* oklch */ color: oklch(37.4% 0.179 298.1);
Tailwind
colors: {
  custom: {
    50: '#885db2',
    500: '#501790',
    950: '#000000',
  },
}
SCSS
$custom: #501790;
$custom-light: #885db2;
$custom-dark: #000000;
JSON
{
  "hex": "#501790",
  "rgb": {
    "r": 80,
    "g": 23,
    "b": 144
  },
  "hsl": {
    "h": 268.264,
    "s": 72.455,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37394,
    "c": 0.17872,
    "h": 298.1
  },
  "luminance": 0.04332
}

Semantic roles & 50–950 ramp

primary
#501790
secondary
#85C142
accent
#EF3999
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #501790

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

Preview Lab → · Contrast checker → · Palette generator →

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