#501B6C#501B6C

#501B6C is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.137 H 311.2°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#501B6C
RGBrgb(80, 27, 108)
HSLhsl(279, 60%, 26%)
HSVhsv(279, 75%, 42%)
CMYKcmyk(25.9%, 75%, 0%, 57.6%)
CIE-LABlab(22.20, 38.81, -36.35)
CIE-LCHlch(22.20, 53.18, 316.88°)
OKLaboklab(34.65% 0.09 -0.1028)
OKLCHoklch(34.65% 0.137 311.2)
XYZxyz(6.4065, 3.5722, 14.5365)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501B6C #376C1B
analogous
#281B6C #501B6C #6C1B60
triadic
#501B6C #6C501B #1B6C50
tetradic
#501B6C #6C281B #376C1B #1B606C
square
#501B6C #6C281B #376C1B #1B606C
split-complementary
#501B6C #606C1B #1B6C28
monochromatic
#120618 #2C0F3B #501B6C #74279D #9835CC

Accessibility & contrast

On white

12.25
#501B6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#501B6C on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##501B6C#FFFFFF#000000##FFFFFF
##501B6C1.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)
#00336E
Deuteranopia (green-blind)
#0F366A
Tritanopia (blue-blind)
#4C2D41
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #501b6c;
/* rgb */ color: rgb(80, 27, 108);
/* oklch */ color: oklch(34.7% 0.137 311.2);
Tailwind
colors: {
  custom: {
    50: '#845d97',
    500: '#501b6c',
    950: '#000000',
  },
}
SCSS
$custom: #501b6c;
$custom-light: #845d97;
$custom-dark: #000000;
JSON
{
  "hex": "#501b6c",
  "rgb": {
    "r": 80,
    "g": 27,
    "b": 108
  },
  "hsl": {
    "h": 279.259,
    "s": 60,
    "l": 26.471
  },
  "oklch": {
    "l": 0.34653,
    "c": 0.13662,
    "h": 311.2
  },
  "luminance": 0.03572
}

Semantic roles & 50–950 ramp

primary
#501B6C
secondary
#63A142
accent
#E3457B
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #501B6C

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

Preview Lab → · Contrast checker → · Palette generator →

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