#501F76#501F76

#501F76 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.142 H 306.2°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#501F76
RGBrgb(80, 31, 118)
HSLhsl(274, 58%, 29%)
HSVhsv(274, 74%, 46%)
CMYKcmyk(32.2%, 73.7%, 0%, 53.7%)
CIE-LABlab(23.65, 39.35, -40.45)
CIE-LCHlch(23.65, 56.43, 314.21°)
OKLaboklab(35.93% 0.084 -0.1149)
OKLCHoklch(35.93% 0.142 306.2)
XYZxyz(7.0676, 3.9935, 17.5345)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501F76 #45761F
analogous
#251F76 #501F76 #761F71
triadic
#501F76 #76501F #1F7650
tetradic
#501F76 #76251F #45761F #1F7176
square
#501F76 #76251F #45761F #1F7176
split-complementary
#501F76 #71761F #1F7625
monochromatic
#100618 #2F1246 #501F76 #712CA6 #9142CD

Accessibility & contrast

On white

11.68
#501F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#501F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501F76
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501F76#FFFFFF#000000##FFFFFF
##501F761.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003779
Deuteranopia (green-blind)
#003974
Tritanopia (blue-blind)
#493348
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #501f76;
/* rgb */ color: rgb(80, 31, 118);
/* oklch */ color: oklch(35.9% 0.142 306.2);
Tailwind
colors: {
  custom: {
    50: '#855f9e',
    500: '#501f76',
    950: '#000000',
  },
}
SCSS
$custom: #501f76;
$custom-light: #855f9e;
$custom-dark: #000000;
JSON
{
  "hex": "#501f76",
  "rgb": {
    "r": 80,
    "g": 31,
    "b": 118
  },
  "hsl": {
    "h": 273.793,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.35927,
    "c": 0.14227,
    "h": 306.2
  },
  "luminance": 0.03993
}

Semantic roles & 50–950 ramp

primary
#501F76
secondary
#72AA47
accent
#E2468A
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #501F76

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

Preview Lab → · Contrast checker → · Palette generator →

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