#501966#501966

#501966 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.0% C 0.133 H 314.4°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#501966
RGBrgb(80, 25, 102)
HSLhsl(283, 61%, 25%)
HSVhsv(283, 75%, 40%)
CMYKcmyk(21.6%, 75.5%, 0%, 60%)
CIE-LABlab(21.43, 38.33, -33.68)
CIE-LCHlch(21.43, 51.03, 318.69°)
OKLaboklab(33.96% 0.093 -0.095)
OKLCHoklch(33.96% 0.133 314.4)
XYZxyz(6.0538, 3.3603, 12.8975)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501966 #2F6619
analogous
#291966 #501966 #661956
triadic
#501966 #665019 #196650
tetradic
#501966 #662919 #2F6619 #195666
square
#501966 #662919 #2F6619 #195666
split-complementary
#501966 #566619 #196629
monochromatic
#130619 #290D35 #501966 #772597 #9D31C8

Accessibility & contrast

On white

12.56
#501966 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #501966
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501966#FFFFFF#000000##FFFFFF
##5019661.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003068
Deuteranopia (green-blind)
#153564
Tritanopia (blue-blind)
#4E293E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #501966;
/* rgb */ color: rgb(80, 25, 102);
/* oklch */ color: oklch(34.0% 0.133 314.4);
Tailwind
colors: {
  custom: {
    50: '#845b92',
    500: '#501966',
    950: '#000000',
  },
}
SCSS
$custom: #501966;
$custom-light: #845b92;
$custom-dark: #000000;
JSON
{
  "hex": "#501966",
  "rgb": {
    "r": 80,
    "g": 25,
    "b": 102
  },
  "hsl": {
    "h": 282.857,
    "s": 60.63,
    "l": 24.902
  },
  "oklch": {
    "l": 0.33962,
    "c": 0.13293,
    "h": 314.4
  },
  "luminance": 0.0336
}

Semantic roles & 50–950 ramp

primary
#501966
secondary
#5A9C3F
accent
#E44472
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #501966

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

Preview Lab → · Contrast checker → · Palette generator →

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