#501F74#501F74

#501F74 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.140 H 307.0°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#501F74
RGBrgb(80, 31, 116)
HSLhsl(275, 58%, 29%)
HSVhsv(275, 73%, 45%)
CMYKcmyk(31%, 73.3%, 0%, 54.5%)
CIE-LABlab(23.49, 38.85, -39.42)
CIE-LCHlch(23.49, 55.35, 314.58°)
OKLaboklab(35.77% 0.0843 -0.1118)
OKLCHoklch(35.77% 0.14 307)
XYZxyz(6.9500, 3.9465, 16.9152)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501F74 #43741F
analogous
#261F74 #501F74 #741F6E
triadic
#501F74 #74501F #1F7450
tetradic
#501F74 #74261F #43741F #1F6E74
square
#501F74 #74261F #43741F #1F6E74
split-complementary
#501F74 #6E741F #1F7426
monochromatic
#110618 #2F1244 #501F74 #712CA4 #9141CC

Accessibility & contrast

On white

11.74
#501F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#501F74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501F74
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501F74#FFFFFF#000000##FFFFFF
##501F741.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003676
Deuteranopia (green-blind)
#053872
Tritanopia (blue-blind)
#4A3247
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #501f74;
/* rgb */ color: rgb(80, 31, 116);
/* oklch */ color: oklch(35.8% 0.140 307.0);
Tailwind
colors: {
  custom: {
    50: '#855f9d',
    500: '#501f74',
    950: '#000000',
  },
}
SCSS
$custom: #501f74;
$custom-light: #855f9d;
$custom-dark: #000000;
JSON
{
  "hex": "#501f74",
  "rgb": {
    "r": 80,
    "g": 31,
    "b": 116
  },
  "hsl": {
    "h": 274.588,
    "s": 57.823,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35766,
    "c": 0.14004,
    "h": 307
  },
  "luminance": 0.03946
}

Semantic roles & 50–950 ramp

primary
#501F74
secondary
#70A847
accent
#E14788
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #501F74

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

Preview Lab → · Contrast checker → · Palette generator →

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