#501F6C#501F6C

#501F6C is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.1% C 0.131 H 310.6°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#501F6C
RGBrgb(80, 31, 108)
HSLhsl(278, 55%, 27%)
HSVhsv(278, 71%, 42%)
CMYKcmyk(25.9%, 71.3%, 0%, 57.6%)
CIE-LABlab(22.89, 36.89, -35.24)
CIE-LCHlch(22.89, 51.02, 316.31°)
OKLaboklab(35.14% 0.0853 -0.0996)
OKLCHoklch(35.14% 0.131 310.6)
XYZxyz(6.5045, 3.7683, 14.5692)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501F6C #3B6C1F
analogous
#2A1F6C #501F6C #6C1F62
triadic
#501F6C #6C501F #1F6C50
tetradic
#501F6C #6C2A1F #3B6C1F #1F626C
square
#501F6C #6C2A1F #3B6C1F #1F626C
split-complementary
#501F6C #626C1F #1F6C2A
monochromatic
#120718 #2D113C #501F6C #732D9C #953EC8

Accessibility & contrast

On white

11.98
#501F6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#501F6C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501F6C
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501F6C#FFFFFF#000000##FFFFFF
##501F6C1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346E
Deuteranopia (green-blind)
#14376A
Tritanopia (blue-blind)
#4C2F43
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #501f6c;
/* rgb */ color: rgb(80, 31, 108);
/* oklch */ color: oklch(35.1% 0.131 310.6);
Tailwind
colors: {
  custom: {
    50: '#845f97',
    500: '#501f6c',
    950: '#000000',
  },
}
SCSS
$custom: #501f6c;
$custom-light: #845f97;
$custom-dark: #000000;
JSON
{
  "hex": "#501f6c",
  "rgb": {
    "r": 80,
    "g": 31,
    "b": 108
  },
  "hsl": {
    "h": 278.182,
    "s": 55.396,
    "l": 27.255
  },
  "oklch": {
    "l": 0.35143,
    "c": 0.13111,
    "h": 310.6
  },
  "luminance": 0.03768
}

Semantic roles & 50–950 ramp

primary
#501F6C
secondary
#67A047
accent
#DF497F
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #501F6C

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

Preview Lab → · Contrast checker → · Palette generator →

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