#501F89#501F89

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

Color values

HEX#501F89
RGBrgb(80, 31, 137)
HSLhsl(268, 63%, 33%)
HSVhsv(268, 77%, 54%)
CMYKcmyk(41.6%, 77.4%, 0%, 46.3%)
CIE-LABlab(25.23, 44.21, -49.87)
CIE-LCHlch(25.23, 66.64, 311.55°)
OKLaboklab(37.54% 0.0799 -0.1426)
OKLCHoklch(37.54% 0.163 299.3)
XYZxyz(8.3125, 4.4915, 24.0911)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501F89 #58891F
analogous
#1F2389 #501F89 #851F89
triadic
#501F89 #89501F #1F8950
tetradic
#501F89 #891F23 #58891F #1F8985
square
#501F89 #891F23 #58891F #1F8985
split-complementary
#501F89 #89851F #23891F
monochromatic
#160825 #331457 #501F89 #6D2ABB #8C4CD6

Accessibility & contrast

On white

11.06
#501F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#501F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501F89
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501F89#FFFFFF#000000##FFFFFF
##501F891.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8C
Deuteranopia (green-blind)
#003B87
Tritanopia (blue-blind)
#423B53
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #501f89;
/* rgb */ color: rgb(80, 31, 137);
/* oklch */ color: oklch(37.5% 0.163 299.3);
Tailwind
colors: {
  custom: {
    50: '#8760ac',
    500: '#501f89',
    950: '#000000',
  },
}
SCSS
$custom: #501f89;
$custom-light: #8760ac;
$custom-dark: #000000;
JSON
{
  "hex": "#501f89",
  "rgb": {
    "r": 80,
    "g": 31,
    "b": 137
  },
  "hsl": {
    "h": 267.736,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37541,
    "c": 0.16341,
    "h": 299.3
  },
  "luminance": 0.04492
}

Semantic roles & 50–950 ramp

primary
#501F89
secondary
#86B94B
accent
#E6429A
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #501F89

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

Preview Lab → · Contrast checker → · Palette generator →

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