#501F88#501F88

#501F88 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.162 H 299.6°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#501F88
RGBrgb(80, 31, 136)
HSLhsl(268, 63%, 33%)
HSVhsv(268, 77%, 53%)
CMYKcmyk(41.2%, 77.2%, 0%, 46.7%)
CIE-LABlab(25.15, 43.95, -49.39)
CIE-LCHlch(25.15, 66.11, 311.66°)
OKLaboklab(37.45% 0.0801 -0.1411)
OKLCHoklch(37.45% 0.162 299.6)
XYZxyz(8.2411, 4.4629, 23.7150)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501F88 #57881F
analogous
#1F2388 #501F88 #841F88
triadic
#501F88 #88501F #1F8850
tetradic
#501F88 #881F23 #57881F #1F8884
square
#501F88 #881F23 #57881F #1F8884
split-complementary
#501F88 #88841F #23881F
monochromatic
#150824 #331456 #501F88 #6D2ABA #8C4BD6

Accessibility & contrast

On white

11.10
#501F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#501F88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501F88
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501F88#FFFFFF#000000##FFFFFF
##501F881.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8B
Deuteranopia (green-blind)
#003B86
Tritanopia (blue-blind)
#433A52
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #501f88;
/* rgb */ color: rgb(80, 31, 136);
/* oklch */ color: oklch(37.5% 0.162 299.6);
Tailwind
colors: {
  custom: {
    50: '#8760ac',
    500: '#501f88',
    950: '#000000',
  },
}
SCSS
$custom: #501f88;
$custom-light: #8760ac;
$custom-dark: #000000;
JSON
{
  "hex": "#501f88",
  "rgb": {
    "r": 80,
    "g": 31,
    "b": 136
  },
  "hsl": {
    "h": 268,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37452,
    "c": 0.1623,
    "h": 299.6
  },
  "luminance": 0.04463
}

Semantic roles & 50–950 ramp

primary
#501F88
secondary
#85B94A
accent
#E64299
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #501F88

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

Preview Lab → · Contrast checker → · Palette generator →

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