#501772#501772

#501772 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.148 H 309.0°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#501772
RGBrgb(80, 23, 114)
HSLhsl(278, 66%, 27%)
HSVhsv(278, 80%, 45%)
CMYKcmyk(29.8%, 79.8%, 0%, 55.3%)
CIE-LABlab(22.06, 41.97, -40.45)
CIE-LCHlch(22.06, 58.29, 316.06°)
OKLaboklab(34.7% 0.093 -0.1148)
OKLCHoklch(34.7% 0.148 309)
XYZxyz(6.6513, 3.5333, 16.2479)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501772 #397217
analogous
#221772 #501772 #721767
triadic
#501772 #725017 #177250
tetradic
#501772 #722217 #397217 #176772
square
#501772 #722217 #397217 #176772
split-complementary
#501772 #677217 #177222
monochromatic
#120519 #2C0D3F #501772 #7421A5 #972ED5

Accessibility & contrast

On white

12.31
#501772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#501772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501772
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501772#FFFFFF#000000##FFFFFF
##5017721.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003375
Deuteranopia (green-blind)
#003570
Tritanopia (blue-blind)
#4B2D44
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #501772;
/* rgb */ color: rgb(80, 23, 114);
/* oklch */ color: oklch(34.7% 0.148 309.0);
Tailwind
colors: {
  custom: {
    50: '#855b9b',
    500: '#501772',
    950: '#000000',
  },
}
SCSS
$custom: #501772;
$custom-light: #855b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#501772",
  "rgb": {
    "r": 80,
    "g": 23,
    "b": 114
  },
  "hsl": {
    "h": 277.582,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.34704,
    "c": 0.14778,
    "h": 309
  },
  "luminance": 0.03533
}

Semantic roles & 50–950 ramp

primary
#501772
secondary
#65A83D
accent
#E93E7E
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #501772

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

Preview Lab → · Contrast checker → · Palette generator →

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