#511A4D#511A4D

#511A4D is a dark, moderate purple. Relative luminance 0.030; OKLCH L 32.5% C 0.107 H 330.7°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#511A4D
RGBrgb(81, 26, 77)
HSLhsl(304, 51%, 21%)
HSVhsv(304, 68%, 32%)
CMYKcmyk(0%, 67.9%, 4.9%, 68.2%)
CIE-LABlab(20.14, 32.84, -19.07)
CIE-LCHlch(20.14, 37.97, 329.86°)
OKLaboklab(32.54% 0.0933 -0.0523)
OKLCHoklch(32.54% 0.107 330.7)
XYZxyz(5.1023, 3.0243, 7.3348)
Luminance0.0302 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A4D #1A511E
analogous
#391A51 #511A4D #511A31
triadic
#511A4D #4D511A #1A4D51
tetradic
#511A4D #51391A #1A511E #1A3151
square
#511A4D #51391A #1A511E #1A3151
split-complementary
#511A4D #31511A #1A5139
monochromatic
#170716 #230B21 #511A4D #7F2979 #AE38A5

Accessibility & contrast

On white

13.09
#511A4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#511A4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511A4D
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A4D#FFFFFF#000000##FFFFFF
##511A4D1.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162C4F
Deuteranopia (green-blind)
#29334C
Tritanopia (blue-blind)
#542030
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #511a4d;
/* rgb */ color: rgb(81, 26, 77);
/* oklch */ color: oklch(32.5% 0.107 330.7);
Tailwind
colors: {
  custom: {
    50: '#845b7f',
    500: '#511a4d',
    950: '#000000',
  },
}
SCSS
$custom: #511a4d;
$custom-light: #845b7f;
$custom-dark: #000000;
JSON
{
  "hex": "#511a4d",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 77
  },
  "hsl": {
    "h": 304.364,
    "s": 51.402,
    "l": 20.98
  },
  "oklch": {
    "l": 0.32542,
    "c": 0.10695,
    "h": 330.7
  },
  "luminance": 0.03024
}

Semantic roles & 50–950 ramp

primary
#511A4D
secondary
#408745
accent
#DB574D
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #511A4D

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

Preview Lab → · Contrast checker → · Palette generator →

#511A4D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva