#501F8D#501F8D

#501F8D is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.168 H 298.0°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#501F8D
RGBrgb(80, 31, 141)
HSLhsl(267, 64%, 34%)
HSVhsv(267, 78%, 55%)
CMYKcmyk(43.3%, 78%, 0%, 44.7%)
CIE-LABlab(25.59, 45.25, -51.78)
CIE-LCHlch(25.59, 68.77, 311.15°)
OKLaboklab(37.9% 0.0788 -0.1482)
OKLCHoklch(37.9% 0.168 298)
XYZxyz(8.6047, 4.6084, 25.6303)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501F8D #5C8D1F
analogous
#1F258D #501F8D #871F8D
triadic
#501F8D #8D501F #1F8D50
tetradic
#501F8D #8D1F25 #5C8D1F #1F8D87
square
#501F8D #8D1F25 #5C8D1F #1F8D87
split-complementary
#501F8D #8D871F #258D1F
monochromatic
#170929 #34145B #501F8D #6C2ABF #8C4ED8

Accessibility & contrast

On white

10.93
#501F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#501F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501F8D
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501F8D#FFFFFF#000000##FFFFFF
##501F8D1.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#003B8B
Tritanopia (blue-blind)
#403C55
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #501f8d;
/* rgb */ color: rgb(80, 31, 141);
/* oklch */ color: oklch(37.9% 0.168 298.0);
Tailwind
colors: {
  custom: {
    50: '#8760af',
    500: '#501f8d',
    950: '#000000',
  },
}
SCSS
$custom: #501f8d;
$custom-light: #8760af;
$custom-dark: #000000;
JSON
{
  "hex": "#501f8d",
  "rgb": {
    "r": 80,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 266.727,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.379,
    "c": 0.16783,
    "h": 298
  },
  "luminance": 0.04609
}

Semantic roles & 50–950 ramp

primary
#501F8D
secondary
#8ABB4D
accent
#E7419D
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #501F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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