#501872#501872

#501872 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.147 H 308.9°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#501872
RGBrgb(80, 24, 114)
HSLhsl(277, 65%, 27%)
HSVhsv(277, 79%, 45%)
CMYKcmyk(29.8%, 78.9%, 0%, 55.3%)
CIE-LABlab(22.21, 41.56, -40.22)
CIE-LCHlch(22.21, 57.83, 315.94°)
OKLaboklab(34.81% 0.0921 -0.1141)
OKLCHoklch(34.81% 0.147 308.9)
XYZxyz(6.6715, 3.5738, 16.2547)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501872 #3A7218
analogous
#231872 #501872 #721867
triadic
#501872 #725018 #187250
tetradic
#501872 #722318 #3A7218 #186772
square
#501872 #722318 #3A7218 #186772
split-complementary
#501872 #677218 #187223
monochromatic
#120519 #2D0D3F #501872 #7323A5 #9631D4

Accessibility & contrast

On white

12.25
#501872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #501872
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501872#FFFFFF#000000##FFFFFF
##5018721.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003375
Deuteranopia (green-blind)
#003670
Tritanopia (blue-blind)
#4B2E44
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #501872;
/* rgb */ color: rgb(80, 24, 114);
/* oklch */ color: oklch(34.8% 0.147 308.9);
Tailwind
colors: {
  custom: {
    50: '#855c9b',
    500: '#501872',
    950: '#000000',
  },
}
SCSS
$custom: #501872;
$custom-light: #855c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#501872",
  "rgb": {
    "r": 80,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 277.333,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.34806,
    "c": 0.14665,
    "h": 308.9
  },
  "luminance": 0.03574
}

Semantic roles & 50–950 ramp

primary
#501872
secondary
#66A73E
accent
#E8407F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #501872

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

Preview Lab → · Contrast checker → · Palette generator →

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