#501888#501888

#501888 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.7% C 0.170 H 300.5°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#501888
RGBrgb(80, 24, 136)
HSLhsl(270, 70%, 31%)
HSVhsv(270, 82%, 53%)
CMYKcmyk(41.2%, 82.4%, 0%, 46.7%)
CIE-LABlab(24.12, 46.91, -51.07)
CIE-LCHlch(24.12, 69.35, 312.57°)
OKLaboklab(36.73% 0.0861 -0.146)
OKLCHoklch(36.73% 0.17 300.5)
XYZxyz(8.0777, 4.1362, 23.6606)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501888 #508818
analogous
#181888 #501888 #881888
triadic
#501888 #885018 #188850
tetradic
#501888 #881818 #508818 #188888
square
#501888 #881818 #508818 #188888
split-complementary
#501888 #888818 #188818
monochromatic
#130620 #310F54 #501888 #6F21BC #8D3EDD

Accessibility & contrast

On white

11.49
#501888 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#501888 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501888
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501888#FFFFFF#000000##FFFFFF
##5018881.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398B
Deuteranopia (green-blind)
#003986
Tritanopia (blue-blind)
#433751
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #501888;
/* rgb */ color: rgb(80, 24, 136);
/* oklch */ color: oklch(36.7% 0.170 300.5);
Tailwind
colors: {
  custom: {
    50: '#875dac',
    500: '#501888',
    950: '#000000',
  },
}
SCSS
$custom: #501888;
$custom-light: #875dac;
$custom-dark: #000000;
JSON
{
  "hex": "#501888",
  "rgb": {
    "r": 80,
    "g": 24,
    "b": 136
  },
  "hsl": {
    "h": 270,
    "s": 70,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36733,
    "c": 0.16954,
    "h": 300.5
  },
  "luminance": 0.04136
}

Semantic roles & 50–950 ramp

primary
#501888
secondary
#7EBC40
accent
#ED3B94
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #501888

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

Preview Lab → · Contrast checker → · Palette generator →

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