#501272#501272

#501272 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.153 H 309.6°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#501272
RGBrgb(80, 18, 114)
HSLhsl(279, 73%, 26%)
HSVhsv(279, 84%, 45%)
CMYKcmyk(29.8%, 84.2%, 0%, 55.3%)
CIE-LABlab(21.41, 43.88, -41.52)
CIE-LCHlch(21.41, 60.41, 316.58°)
OKLaboklab(34.24% 0.0975 -0.1179)
OKLCHoklch(34.24% 0.153 309.6)
XYZxyz(6.5612, 3.3531, 16.2179)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501272 #347212
analogous
#201272 #501272 #721264
triadic
#501272 #725012 #127250
tetradic
#501272 #722012 #347212 #126472
square
#501272 #722012 #347212 #126472
split-complementary
#501272 #647212 #127220
monochromatic
#13041A #2B0A3D #501272 #751AA7 #9A23DC

Accessibility & contrast

On white

12.57
#501272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#501272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501272
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501272#FFFFFF#000000##FFFFFF
##5012721.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003175
Deuteranopia (green-blind)
#003470
Tritanopia (blue-blind)
#4B2B43
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #501272;
/* rgb */ color: rgb(80, 18, 114);
/* oklch */ color: oklch(34.2% 0.153 309.6);
Tailwind
colors: {
  custom: {
    50: '#85599b',
    500: '#501272',
    950: '#000000',
  },
}
SCSS
$custom: #501272;
$custom-light: #85599b;
$custom-dark: #000000;
JSON
{
  "hex": "#501272",
  "rgb": {
    "r": 80,
    "g": 18,
    "b": 114
  },
  "hsl": {
    "h": 278.75,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.34242,
    "c": 0.153,
    "h": 309.6
  },
  "luminance": 0.03353
}

Semantic roles & 50–950 ramp

primary
#501272
secondary
#5FA937
accent
#EF3879
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #501272

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

Preview Lab → · Contrast checker → · Palette generator →

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