#501B6E#501B6E

#501B6E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.139 H 310.3°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#501B6E
RGBrgb(80, 27, 110)
HSLhsl(278, 61%, 27%)
HSVhsv(278, 75%, 43%)
CMYKcmyk(27.3%, 75.5%, 0%, 56.9%)
CIE-LABlab(22.36, 39.29, -37.40)
CIE-LCHlch(22.36, 54.24, 316.41°)
OKLaboklab(34.81% 0.0897 -0.1059)
OKLCHoklch(34.81% 0.139 310.3)
XYZxyz(6.5141, 3.6153, 15.1035)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501B6E #396E1B
analogous
#261B6E #501B6E #6E1B63
triadic
#501B6E #6E501B #1B6E50
tetradic
#501B6E #6E261B #396E1B #1B636E
square
#501B6E #6E261B #396E1B #1B636E
split-complementary
#501B6E #636E1B #1B6E26
monochromatic
#120619 #2C0F3D #501B6E #74279F #9736CE

Accessibility & contrast

On white

12.19
#501B6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#501B6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501B6E
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501B6E#FFFFFF#000000##FFFFFF
##501B6E1.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003370
Deuteranopia (green-blind)
#0B366C
Tritanopia (blue-blind)
#4C2E43
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #501b6e;
/* rgb */ color: rgb(80, 27, 110);
/* oklch */ color: oklch(34.8% 0.139 310.3);
Tailwind
colors: {
  custom: {
    50: '#855d98',
    500: '#501b6e',
    950: '#000000',
  },
}
SCSS
$custom: #501b6e;
$custom-light: #855d98;
$custom-dark: #000000;
JSON
{
  "hex": "#501b6e",
  "rgb": {
    "r": 80,
    "g": 27,
    "b": 110
  },
  "hsl": {
    "h": 278.313,
    "s": 60.584,
    "l": 26.863
  },
  "oklch": {
    "l": 0.3481,
    "c": 0.13875,
    "h": 310.3
  },
  "luminance": 0.03615
}

Semantic roles & 50–950 ramp

primary
#501B6E
secondary
#65A342
accent
#E4447E
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #501B6E

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

Preview Lab → · Contrast checker → · Palette generator →

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