#501B87#501B87

#501B87 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.166 H 300.5°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#501B87
RGBrgb(80, 27, 135)
HSLhsl(269, 67%, 32%)
HSVhsv(269, 80%, 53%)
CMYKcmyk(40.7%, 80%, 0%, 47.1%)
CIE-LABlab(24.44, 45.45, -49.91)
CIE-LCHlch(24.44, 67.50, 312.32°)
OKLaboklab(36.93% 0.084 -0.1426)
OKLCHoklch(36.93% 0.166 300.5)
XYZxyz(8.0723, 4.2385, 23.3098)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501B87 #52871B
analogous
#1B1C87 #501B87 #861B87
triadic
#501B87 #87501B #1B8750
tetradic
#501B87 #871B1C #52871B #1B8786
square
#501B87 #871B1C #52871B #1B8786
split-complementary
#501B87 #87861B #1C871B
monochromatic
#140721 #321154 #501B87 #6E25BA #8D43D9

Accessibility & contrast

On white

11.36
#501B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#501B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501B87
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501B87#FFFFFF#000000##FFFFFF
##501B871.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003985
Tritanopia (blue-blind)
#433851
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #501b87;
/* rgb */ color: rgb(80, 27, 135);
/* oklch */ color: oklch(36.9% 0.166 300.5);
Tailwind
colors: {
  custom: {
    50: '#875eab',
    500: '#501b87',
    950: '#000000',
  },
}
SCSS
$custom: #501b87;
$custom-light: #875eab;
$custom-dark: #000000;
JSON
{
  "hex": "#501b87",
  "rgb": {
    "r": 80,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 269.444,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36933,
    "c": 0.16553,
    "h": 300.5
  },
  "luminance": 0.04239
}

Semantic roles & 50–950 ramp

primary
#501B87
secondary
#80BA44
accent
#EA3E95
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #501B87

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

Preview Lab → · Contrast checker → · Palette generator →

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