#501873#501873

#501873 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.148 H 308.5°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#501873
RGBrgb(80, 24, 115)
HSLhsl(277, 65%, 27%)
HSVhsv(277, 79%, 45%)
CMYKcmyk(30.4%, 79.1%, 0%, 54.9%)
CIE-LABlab(22.29, 41.80, -40.73)
CIE-LCHlch(22.29, 58.36, 315.74°)
OKLaboklab(34.89% 0.0919 -0.1156)
OKLCHoklch(34.89% 0.148 308.5)
XYZxyz(6.7288, 3.5967, 16.5561)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501873 #3B7318
analogous
#221873 #501873 #731869
triadic
#501873 #735018 #187350
tetradic
#501873 #732218 #3B7318 #186973
square
#501873 #732218 #3B7318 #186973
split-complementary
#501873 #697318 #187322
monochromatic
#120519 #2D0D40 #501873 #7323A6 #9531D4

Accessibility & contrast

On white

12.21
#501873 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#501873 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501873
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501873#FFFFFF#000000##FFFFFF
##5018731.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003376
Deuteranopia (green-blind)
#003671
Tritanopia (blue-blind)
#4A2E45
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #501873;
/* rgb */ color: rgb(80, 24, 115);
/* oklch */ color: oklch(34.9% 0.148 308.5);
Tailwind
colors: {
  custom: {
    50: '#855c9c',
    500: '#501873',
    950: '#000000',
  },
}
SCSS
$custom: #501873;
$custom-light: #855c9c;
$custom-dark: #000000;
JSON
{
  "hex": "#501873",
  "rgb": {
    "r": 80,
    "g": 24,
    "b": 115
  },
  "hsl": {
    "h": 276.923,
    "s": 65.468,
    "l": 27.255
  },
  "oklch": {
    "l": 0.34889,
    "c": 0.14768,
    "h": 308.5
  },
  "luminance": 0.03597
}

Semantic roles & 50–950 ramp

primary
#501873
secondary
#67A83F
accent
#E83F80
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #501873

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

Preview Lab → · Contrast checker → · Palette generator →

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