#501770#501770

#501770 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.146 H 309.9°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#501770
RGBrgb(80, 23, 112)
HSLhsl(278, 66%, 26%)
HSVhsv(278, 79%, 44%)
CMYKcmyk(28.6%, 79.5%, 0%, 56.1%)
CIE-LABlab(21.90, 41.50, -39.43)
CIE-LCHlch(21.90, 57.25, 316.47°)
OKLaboklab(34.54% 0.0935 -0.1118)
OKLCHoklch(34.54% 0.146 309.9)
XYZxyz(6.5387, 3.4883, 15.6549)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501770 #377017
analogous
#241770 #501770 #701764
triadic
#501770 #705017 #177050
tetradic
#501770 #702417 #377017 #176470
square
#501770 #702417 #377017 #176470
split-complementary
#501770 #647017 #177024
monochromatic
#120519 #2C0D3D #501770 #7421A3 #982DD4

Accessibility & contrast

On white

12.37
#501770 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#501770 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501770
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501770#FFFFFF#000000##FFFFFF
##5017701.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003272
Deuteranopia (green-blind)
#00356E
Tritanopia (blue-blind)
#4B2C43
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #501770;
/* rgb */ color: rgb(80, 23, 112);
/* oklch */ color: oklch(34.5% 0.146 309.9);
Tailwind
colors: {
  custom: {
    50: '#855b9a',
    500: '#501770',
    950: '#000000',
  },
}
SCSS
$custom: #501770;
$custom-light: #855b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#501770",
  "rgb": {
    "r": 80,
    "g": 23,
    "b": 112
  },
  "hsl": {
    "h": 278.427,
    "s": 65.926,
    "l": 26.471
  },
  "oklch": {
    "l": 0.34538,
    "c": 0.14573,
    "h": 309.9
  },
  "luminance": 0.03488
}

Semantic roles & 50–950 ramp

primary
#501770
secondary
#63A63D
accent
#E93F7C
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #501770

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

Preview Lab → · Contrast checker → · Palette generator →

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