#501751#501751

#501751 is a dark, moderate purple. Relative luminance 0.029; OKLCH L 32.3% C 0.115 H 327.1°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#501751
RGBrgb(80, 23, 81)
HSLhsl(299, 56%, 20%)
HSVhsv(299, 72%, 32%)
CMYKcmyk(1.2%, 71.6%, 0%, 68.2%)
CIE-LABlab(19.69, 34.75, -22.50)
CIE-LCHlch(19.69, 41.39, 327.08°)
OKLaboklab(32.26% 0.0963 -0.0623)
OKLCHoklch(32.26% 0.115 327.1)
XYZxyz(5.0998, 2.9127, 8.0766)
Luminance0.0291 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501751 #185117
analogous
#331751 #501751 #511735
triadic
#501751 #515017 #175150
tetradic
#501751 #513317 #185117 #173551
square
#501751 #513317 #185117 #173551
split-complementary
#501751 #355117 #175133
monochromatic
#180718 #210921 #501751 #7F2581 #AE32B0

Accessibility & contrast

On white

13.27
#501751 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#501751 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501751
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501751#FFFFFF#000000##FFFFFF
##5017511.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2B53
Deuteranopia (green-blind)
#25324F
Tritanopia (blue-blind)
#521F32
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #501751;
/* rgb */ color: rgb(80, 23, 81);
/* oklch */ color: oklch(32.3% 0.115 327.1);
Tailwind
colors: {
  custom: {
    50: '#835982',
    500: '#501751',
    950: '#000000',
  },
}
SCSS
$custom: #501751;
$custom-light: #835982;
$custom-dark: #000000;
JSON
{
  "hex": "#501751",
  "rgb": {
    "r": 80,
    "g": 23,
    "b": 81
  },
  "hsl": {
    "h": 298.966,
    "s": 55.769,
    "l": 20.392
  },
  "oklch": {
    "l": 0.32257,
    "c": 0.11471,
    "h": 327.1
  },
  "luminance": 0.02912
}

Semantic roles & 50–950 ramp

primary
#501751
secondary
#3D883C
accent
#DF494B
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #501751

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

Preview Lab → · Contrast checker → · Palette generator →

#501751 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva