#501270#501270

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

Color values

HEX#501270
RGBrgb(80, 18, 112)
HSLhsl(280, 72%, 25%)
HSVhsv(280, 84%, 44%)
CMYKcmyk(28.6%, 83.9%, 0%, 56.1%)
CIE-LABlab(21.24, 43.42, -40.51)
CIE-LCHlch(21.24, 59.38, 316.99°)
OKLaboklab(34.07% 0.098 -0.1149)
OKLCHoklch(34.07% 0.151 310.5)
XYZxyz(6.4486, 3.3081, 15.6249)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501270 #327012
analogous
#211270 #501270 #701261
triadic
#501270 #705012 #127050
tetradic
#501270 #702112 #327012 #126170
square
#501270 #702112 #327012 #126170
split-complementary
#501270 #617012 #127021
monochromatic
#13041A #2A0A3B #501270 #761AA5 #9B23D9

Accessibility & contrast

On white

12.64
#501270 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #501270
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501270#FFFFFF#000000##FFFFFF
##5012701.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #501270;
/* rgb */ color: rgb(80, 18, 112);
/* oklch */ color: oklch(34.1% 0.151 310.5);
Tailwind
colors: {
  custom: {
    50: '#85599a',
    500: '#501270',
    950: '#000000',
  },
}
SCSS
$custom: #501270;
$custom-light: #85599a;
$custom-dark: #000000;
JSON
{
  "hex": "#501270",
  "rgb": {
    "r": 80,
    "g": 18,
    "b": 112
  },
  "hsl": {
    "h": 279.574,
    "s": 72.308,
    "l": 25.49
  },
  "oklch": {
    "l": 0.34072,
    "c": 0.15105,
    "h": 310.5
  },
  "luminance": 0.03308
}

Semantic roles & 50–950 ramp

primary
#501270
secondary
#5DA737
accent
#EF3977
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #501270

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

Preview Lab → · Contrast checker → · Palette generator →

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