#501789#501789

#501789 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.7% C 0.171 H 300.3°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#501789
RGBrgb(80, 23, 137)
HSLhsl(270, 71%, 31%)
HSVhsv(270, 83%, 54%)
CMYKcmyk(41.6%, 83.2%, 0%, 46.3%)
CIE-LABlab(24.08, 47.54, -51.76)
CIE-LCHlch(24.08, 70.28, 312.57°)
OKLaboklab(36.73% 0.0866 -0.148)
OKLCHoklch(36.73% 0.171 300.3)
XYZxyz(8.1289, 4.1243, 24.0299)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501789 #508917
analogous
#171789 #501789 #891789
triadic
#501789 #895017 #178950
tetradic
#501789 #891717 #508917 #178989
square
#501789 #891717 #508917 #178989
split-complementary
#501789 #898917 #178917
monochromatic
#130520 #310E55 #501789 #6F20BD #8D3CDE

Accessibility & contrast

On white

11.51
#501789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#501789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501789
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501789#FFFFFF#000000##FFFFFF
##5017891.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398C
Deuteranopia (green-blind)
#003887
Tritanopia (blue-blind)
#433751
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #501789;
/* rgb */ color: rgb(80, 23, 137);
/* oklch */ color: oklch(36.7% 0.171 300.3);
Tailwind
colors: {
  custom: {
    50: '#875cac',
    500: '#501789',
    950: '#000000',
  },
}
SCSS
$custom: #501789;
$custom-light: #875cac;
$custom-dark: #000000;
JSON
{
  "hex": "#501789",
  "rgb": {
    "r": 80,
    "g": 23,
    "b": 137
  },
  "hsl": {
    "h": 270,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36734,
    "c": 0.17149,
    "h": 300.3
  },
  "luminance": 0.04124
}

Semantic roles & 50–950 ramp

primary
#501789
secondary
#7EBD3F
accent
#EE3A94
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #501789

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

Preview Lab → · Contrast checker → · Palette generator →

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