#501173#501173

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

Color values

HEX#501173
RGBrgb(80, 17, 115)
HSLhsl(279, 74%, 26%)
HSVhsv(279, 85%, 45%)
CMYKcmyk(30.4%, 85.2%, 0%, 54.9%)
CIE-LABlab(21.37, 44.45, -42.22)
CIE-LCHlch(21.37, 61.31, 316.47°)
OKLaboklab(34.25% 0.098 -0.12)
OKLCHoklch(34.25% 0.155 309.2)
XYZxyz(6.6026, 3.3443, 16.5140)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501173 #347311
analogous
#1F1173 #501173 #731165
triadic
#501173 #735011 #117350
tetradic
#501173 #731F11 #347311 #116573
square
#501173 #731F11 #347311 #116573
split-complementary
#501173 #657311 #11731F
monochromatic
#13041B #2B093E #501173 #7519A8 #9A21DE

Accessibility & contrast

On white

12.58
#501173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#501173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501173
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501173#FFFFFF#000000##FFFFFF
##5011731.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #501173;
/* rgb */ color: rgb(80, 17, 115);
/* oklch */ color: oklch(34.2% 0.155 309.2);
Tailwind
colors: {
  custom: {
    50: '#86599c',
    500: '#501173',
    950: '#000000',
  },
}
SCSS
$custom: #501173;
$custom-light: #86599c;
$custom-dark: #000000;
JSON
{
  "hex": "#501173",
  "rgb": {
    "r": 80,
    "g": 17,
    "b": 115
  },
  "hsl": {
    "h": 278.571,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.34246,
    "c": 0.15491,
    "h": 309.2
  },
  "luminance": 0.03344
}

Semantic roles & 50–950 ramp

primary
#501173
secondary
#5FAA36
accent
#F13779
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #501173

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

Preview Lab → · Contrast checker → · Palette generator →

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