#501172#501172

#501172 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.2% C 0.154 H 309.7°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#501172
RGBrgb(80, 17, 114)
HSLhsl(279, 74%, 26%)
HSVhsv(279, 85%, 45%)
CMYKcmyk(29.8%, 85.1%, 0%, 55.3%)
CIE-LABlab(21.29, 44.22, -41.72)
CIE-LCHlch(21.29, 60.79, 316.67°)
OKLaboklab(34.16% 0.0983 -0.1185)
OKLCHoklch(34.16% 0.154 309.7)
XYZxyz(6.5454, 3.3214, 16.2126)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501172 #337211
analogous
#1F1172 #501172 #721163
triadic
#501172 #725011 #117250
tetradic
#501172 #721F11 #337211 #116372
square
#501172 #721F11 #337211 #116372
split-complementary
#501172 #637211 #11721F
monochromatic
#13041B #2B093D #501172 #7519A7 #9B21DD

Accessibility & contrast

On white

12.62
#501172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#501172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501172
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501172#FFFFFF#000000##FFFFFF
##5011721.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003175
Deuteranopia (green-blind)
#003470
Tritanopia (blue-blind)
#4B2B43
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #501172;
/* rgb */ color: rgb(80, 17, 114);
/* oklch */ color: oklch(34.2% 0.154 309.7);
Tailwind
colors: {
  custom: {
    50: '#85599b',
    500: '#501172',
    950: '#000000',
  },
}
SCSS
$custom: #501172;
$custom-light: #85599b;
$custom-dark: #000000;
JSON
{
  "hex": "#501172",
  "rgb": {
    "r": 80,
    "g": 17,
    "b": 114
  },
  "hsl": {
    "h": 278.969,
    "s": 74.046,
    "l": 25.686
  },
  "oklch": {
    "l": 0.3416,
    "c": 0.15394,
    "h": 309.7
  },
  "luminance": 0.03321
}

Semantic roles & 50–950 ramp

primary
#501172
secondary
#5EA936
accent
#F13778
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #501172

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

Preview Lab → · Contrast checker → · Palette generator →

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