#501F98#501F98

#501F98 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.9% C 0.180 H 294.8°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#501F98
RGBrgb(80, 31, 152)
HSLhsl(264, 66%, 36%)
HSVhsv(264, 80%, 60%)
CMYKcmyk(47.4%, 79.6%, 0%, 40.4%)
CIE-LABlab(26.60, 48.14, -56.92)
CIE-LCHlch(26.60, 74.55, 310.22°)
OKLaboklab(38.92% 0.0756 -0.1632)
OKLCHoklch(38.92% 0.18 294.8)
XYZxyz(9.4642, 4.9522, 30.1569)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501F98 #67981F
analogous
#1F2A98 #501F98 #8C1F98
triadic
#501F98 #98501F #1F9850
tetradic
#501F98 #981F2A #67981F #1F988C
square
#501F98 #981F2A #67981F #1F988C
split-complementary
#501F98 #988C1F #2A981F
monochromatic
#1A0A32 #351565 #501F98 #6B29CB #8C55DC

Accessibility & contrast

On white

10.55
#501F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#501F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501F98
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501F98#FFFFFF#000000##FFFFFF
##501F981.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409B
Deuteranopia (green-blind)
#003D96
Tritanopia (blue-blind)
#3B415B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #501f98;
/* rgb */ color: rgb(80, 31, 152);
/* oklch */ color: oklch(38.9% 0.180 294.8);
Tailwind
colors: {
  custom: {
    50: '#8961b7',
    500: '#501f98',
    950: '#000000',
  },
}
SCSS
$custom: #501f98;
$custom-light: #8961b7;
$custom-dark: #000000;
JSON
{
  "hex": "#501f98",
  "rgb": {
    "r": 80,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 264.298,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.38915,
    "c": 0.17991,
    "h": 294.8
  },
  "luminance": 0.04952
}

Semantic roles & 50–950 ramp

primary
#501F98
secondary
#94C053
accent
#E93FA4
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #501F98

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

Preview Lab → · Contrast checker → · Palette generator →

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