#501871#501871

#501871 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.146 H 309.3°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#501871
RGBrgb(80, 24, 113)
HSLhsl(278, 65%, 27%)
HSVhsv(278, 79%, 44%)
CMYKcmyk(29.2%, 78.8%, 0%, 55.7%)
CIE-LABlab(22.13, 41.32, -39.71)
CIE-LCHlch(22.13, 57.31, 316.14°)
OKLaboklab(34.72% 0.0923 -0.1126)
OKLCHoklch(34.72% 0.146 309.3)
XYZxyz(6.6149, 3.5511, 15.9565)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501871 #397118
analogous
#241871 #501871 #711866
triadic
#501871 #715018 #187150
tetradic
#501871 #712418 #397118 #186671
square
#501871 #712418 #397118 #186671
split-complementary
#501871 #667118 #187124
monochromatic
#120519 #2C0D3F #501871 #7423A3 #9730D3

Accessibility & contrast

On white

12.28
#501871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#501871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501871
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501871#FFFFFF#000000##FFFFFF
##5018711.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#00366F
Tritanopia (blue-blind)
#4B2D43
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #501871;
/* rgb */ color: rgb(80, 24, 113);
/* oklch */ color: oklch(34.7% 0.146 309.3);
Tailwind
colors: {
  custom: {
    50: '#855b9a',
    500: '#501871',
    950: '#000000',
  },
}
SCSS
$custom: #501871;
$custom-light: #855b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#501871",
  "rgb": {
    "r": 80,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 277.753,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.34723,
    "c": 0.14561,
    "h": 309.3
  },
  "luminance": 0.03551
}

Semantic roles & 50–950 ramp

primary
#501871
secondary
#65A63E
accent
#E8407E
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #501871

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

Preview Lab → · Contrast checker → · Palette generator →

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