#501F9F#501F9F

#501F9F is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.6% C 0.188 H 293.0°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#501F9F
RGBrgb(80, 31, 159)
HSLhsl(263, 67%, 37%)
HSVhsv(263, 81%, 62%)
CMYKcmyk(49.7%, 80.5%, 0%, 37.6%)
CIE-LABlab(27.26, 49.99, -60.11)
CIE-LCHlch(27.26, 78.18, 309.75°)
OKLaboklab(39.58% 0.0734 -0.1726)
OKLCHoklch(39.58% 0.188 293)
XYZxyz(10.0545, 5.1883, 33.2658)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501F9F #6E9F1F
analogous
#1F2E9F #501F9F #901F9F
triadic
#501F9F #9F501F #1F9F50
tetradic
#501F9F #9F1F2E #6E9F1F #1F9F90
square
#501F9F #9F1F2E #6E9F1F #1F9F90
split-complementary
#501F9F #9F901F #2E9F1F
monochromatic
#1C0B39 #36156C #501F9F #6A29D2 #8D5ADF

Accessibility & contrast

On white

10.31
#501F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#501F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501F9F
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501F9F#FFFFFF#000000##FFFFFF
##501F9F1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A2
Deuteranopia (green-blind)
#003E9D
Tritanopia (blue-blind)
#37445F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #501f9f;
/* rgb */ color: rgb(80, 31, 159);
/* oklch */ color: oklch(39.6% 0.188 293.0);
Tailwind
colors: {
  custom: {
    50: '#8a61bc',
    500: '#501f9f',
    950: '#000000',
  },
}
SCSS
$custom: #501f9f;
$custom-light: #8a61bc;
$custom-dark: #000000;
JSON
{
  "hex": "#501f9f",
  "rgb": {
    "r": 80,
    "g": 31,
    "b": 159
  },
  "hsl": {
    "h": 262.969,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39581,
    "c": 0.18753,
    "h": 293
  },
  "luminance": 0.05189
}

Semantic roles & 50–950 ramp

primary
#501F9F
secondary
#9AC357
accent
#EA3EA8
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #501F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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