#501988#501988

#501988 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.169 H 300.4°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#501988
RGBrgb(80, 25, 136)
HSLhsl(270, 69%, 32%)
HSVhsv(270, 82%, 53%)
CMYKcmyk(41.2%, 81.6%, 0%, 46.7%)
CIE-LABlab(24.25, 46.52, -50.85)
CIE-LCHlch(24.25, 68.92, 312.45°)
OKLaboklab(36.83% 0.0853 -0.1454)
OKLCHoklch(36.83% 0.169 300.4)
XYZxyz(8.0987, 4.1782, 23.6676)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501988 #518819
analogous
#191988 #501988 #881988
triadic
#501988 #885019 #198850
tetradic
#501988 #881919 #518819 #198888
square
#501988 #881919 #518819 #198888
split-complementary
#501988 #888819 #198819
monochromatic
#130621 #320F54 #501988 #6E23BC #8D40DC

Accessibility & contrast

On white

11.44
#501988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#501988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501988
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501988#FFFFFF#000000##FFFFFF
##5019881.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398B
Deuteranopia (green-blind)
#003986
Tritanopia (blue-blind)
#433851
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #501988;
/* rgb */ color: rgb(80, 25, 136);
/* oklch */ color: oklch(36.8% 0.169 300.4);
Tailwind
colors: {
  custom: {
    50: '#875dac',
    500: '#501988',
    950: '#000000',
  },
}
SCSS
$custom: #501988;
$custom-light: #875dac;
$custom-dark: #000000;
JSON
{
  "hex": "#501988",
  "rgb": {
    "r": 80,
    "g": 25,
    "b": 136
  },
  "hsl": {
    "h": 269.73,
    "s": 68.944,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36827,
    "c": 0.16859,
    "h": 300.4
  },
  "luminance": 0.04178
}

Semantic roles & 50–950 ramp

primary
#501988
secondary
#7FBB41
accent
#EC3C95
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #501988

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

Preview Lab → · Contrast checker → · Palette generator →

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