#501B68#501B68

#501B68 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.3% C 0.132 H 313.1°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#501B68
RGBrgb(80, 27, 104)
HSLhsl(281, 59%, 26%)
HSVhsv(281, 74%, 41%)
CMYKcmyk(23.1%, 74%, 0%, 59.2%)
CIE-LABlab(21.90, 37.88, -34.23)
CIE-LCHlch(21.90, 51.05, 317.89°)
OKLaboklab(34.35% 0.0905 -0.0966)
OKLCHoklch(34.35% 0.132 313.1)
XYZxyz(6.1985, 3.4890, 13.4409)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501B68 #33681B
analogous
#291B68 #501B68 #681B59
triadic
#501B68 #68501B #1B6850
tetradic
#501B68 #68291B #33681B #1B5968
square
#501B68 #68291B #33681B #1B5968
split-complementary
#501B68 #59681B #1B6829
monochromatic
#130618 #2B0E37 #501B68 #752899 #9B34C9

Accessibility & contrast

On white

12.37
#501B68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#501B68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501B68
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501B68#FFFFFF#000000##FFFFFF
##501B681.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326A
Deuteranopia (green-blind)
#153666
Tritanopia (blue-blind)
#4D2B3F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #501b68;
/* rgb */ color: rgb(80, 27, 104);
/* oklch */ color: oklch(34.3% 0.132 313.1);
Tailwind
colors: {
  custom: {
    50: '#845d94',
    500: '#501b68',
    950: '#000000',
  },
}
SCSS
$custom: #501b68;
$custom-light: #845d94;
$custom-dark: #000000;
JSON
{
  "hex": "#501b68",
  "rgb": {
    "r": 80,
    "g": 27,
    "b": 104
  },
  "hsl": {
    "h": 281.299,
    "s": 58.779,
    "l": 25.686
  },
  "oklch": {
    "l": 0.34345,
    "c": 0.13235,
    "h": 313.1
  },
  "luminance": 0.03489
}

Semantic roles & 50–950 ramp

primary
#501B68
secondary
#5E9D42
accent
#E24676
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #501B68

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

Preview Lab → · Contrast checker → · Palette generator →

#501B68 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva