#501F6E#501F6E

#501F6E is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.3% C 0.133 H 309.7°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#501F6E
RGBrgb(80, 31, 110)
HSLhsl(277, 56%, 28%)
HSVhsv(277, 72%, 43%)
CMYKcmyk(27.3%, 71.8%, 0%, 56.9%)
CIE-LABlab(23.04, 37.37, -36.30)
CIE-LCHlch(23.04, 52.10, 315.84°)
OKLaboklab(35.3% 0.0851 -0.1027)
OKLCHoklch(35.3% 0.133 309.7)
XYZxyz(6.6122, 3.8114, 15.1362)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501F6E #3D6E1F
analogous
#281F6E #501F6E #6E1F64
triadic
#501F6E #6E501F #1F6E50
tetradic
#501F6E #6E281F #3D6E1F #1F646E
square
#501F6E #6E281F #3D6E1F #1F646E
split-complementary
#501F6E #646E1F #1F6E28
monochromatic
#110718 #2D123E #501F6E #732C9E #943FC9

Accessibility & contrast

On white

11.92
#501F6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#501F6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501F6E
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501F6E#FFFFFF#000000##FFFFFF
##501F6E1.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003570
Deuteranopia (green-blind)
#11386C
Tritanopia (blue-blind)
#4C3044
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #501f6e;
/* rgb */ color: rgb(80, 31, 110);
/* oklch */ color: oklch(35.3% 0.133 309.7);
Tailwind
colors: {
  custom: {
    50: '#845f98',
    500: '#501f6e',
    950: '#000000',
  },
}
SCSS
$custom: #501f6e;
$custom-light: #845f98;
$custom-dark: #000000;
JSON
{
  "hex": "#501f6e",
  "rgb": {
    "r": 80,
    "g": 31,
    "b": 110
  },
  "hsl": {
    "h": 277.215,
    "s": 56.028,
    "l": 27.647
  },
  "oklch": {
    "l": 0.35296,
    "c": 0.13335,
    "h": 309.7
  },
  "luminance": 0.03811
}

Semantic roles & 50–950 ramp

primary
#501F6E
secondary
#69A247
accent
#DF4882
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #501F6E

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

Preview Lab → · Contrast checker → · Palette generator →

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