#501868#501868

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

Color values

HEX#501868
RGBrgb(80, 24, 104)
HSLhsl(282, 63%, 25%)
HSVhsv(282, 77%, 41%)
CMYKcmyk(23.1%, 76.9%, 0%, 59.2%)
CIE-LABlab(21.43, 39.23, -35.00)
CIE-LCHlch(21.43, 52.58, 318.26°)
OKLaboklab(34% 0.0939 -0.0988)
OKLCHoklch(34% 0.136 313.5)
XYZxyz(6.1332, 3.3584, 13.4192)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501868 #306818
analogous
#281868 #501868 #681858
triadic
#501868 #685018 #186850
tetradic
#501868 #682818 #306818 #185868
square
#501868 #682818 #306818 #185868
split-complementary
#501868 #586818 #186828
monochromatic
#130619 #2A0D36 #501868 #76239A #9C2FCB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##501868#FFFFFF#000000##FFFFFF
##5018681.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)
#00306A
Deuteranopia (green-blind)
#113566
Tritanopia (blue-blind)
#4E293E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #501868;
/* rgb */ color: rgb(80, 24, 104);
/* oklch */ color: oklch(34.0% 0.136 313.5);
Tailwind
colors: {
  custom: {
    50: '#845b94',
    500: '#501868',
    950: '#000000',
  },
}
SCSS
$custom: #501868;
$custom-light: #845b94;
$custom-dark: #000000;
JSON
{
  "hex": "#501868",
  "rgb": {
    "r": 80,
    "g": 24,
    "b": 104
  },
  "hsl": {
    "h": 282,
    "s": 62.5,
    "l": 25.098
  },
  "oklch": {
    "l": 0.34004,
    "c": 0.13629,
    "h": 313.5
  },
  "luminance": 0.03358
}

Semantic roles & 50–950 ramp

primary
#501868
secondary
#5B9E3E
accent
#E64273
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #501868

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

Preview Lab → · Contrast checker → · Palette generator →

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