#501170#501170

#501170 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.152 H 310.5°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#501170
RGBrgb(80, 17, 112)
HSLhsl(280, 74%, 25%)
HSVhsv(280, 85%, 44%)
CMYKcmyk(28.6%, 84.8%, 0%, 56.1%)
CIE-LABlab(21.12, 43.77, -40.70)
CIE-LCHlch(21.12, 59.77, 317.08°)
OKLaboklab(33.99% 0.0988 -0.1155)
OKLCHoklch(33.99% 0.152 310.5)
XYZxyz(6.4328, 3.2764, 15.6196)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501170 #317011
analogous
#201170 #501170 #701161
triadic
#501170 #705011 #117050
tetradic
#501170 #702011 #317011 #116170
square
#501170 #702011 #317011 #116170
split-complementary
#501170 #617011 #117020
monochromatic
#13041B #2A093B #501170 #7619A5 #9C21DA

Accessibility & contrast

On white

12.69
#501170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #501170
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501170#FFFFFF#000000##FFFFFF
##5011701.0012.691.6612.69
#FFFFFF12.691.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003073
Deuteranopia (green-blind)
#00346E
Tritanopia (blue-blind)
#4C2A41
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #501170;
/* rgb */ color: rgb(80, 17, 112);
/* oklch */ color: oklch(34.0% 0.152 310.5);
Tailwind
colors: {
  custom: {
    50: '#85589a',
    500: '#501170',
    950: '#000000',
  },
}
SCSS
$custom: #501170;
$custom-light: #85589a;
$custom-dark: #000000;
JSON
{
  "hex": "#501170",
  "rgb": {
    "r": 80,
    "g": 17,
    "b": 112
  },
  "hsl": {
    "h": 279.789,
    "s": 73.643,
    "l": 25.294
  },
  "oklch": {
    "l": 0.33989,
    "c": 0.15201,
    "h": 310.5
  },
  "luminance": 0.03276
}

Semantic roles & 50–950 ramp

primary
#501170
secondary
#5CA735
accent
#F03776
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #501170

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

Preview Lab → · Contrast checker → · Palette generator →

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