#511C4F#511C4F

#511C4F is a dark, moderate purple. Relative luminance 0.031; OKLCH L 32.9% C 0.106 H 329.2°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#511C4F
RGBrgb(81, 28, 79)
HSLhsl(302, 49%, 21%)
HSVhsv(302, 65%, 32%)
CMYKcmyk(0%, 65.4%, 2.5%, 68.2%)
CIE-LABlab(20.61, 32.23, -19.68)
CIE-LCHlch(20.61, 37.76, 328.60°)
OKLaboklab(32.92% 0.0907 -0.0541)
OKLCHoklch(32.92% 0.106 329.2)
XYZxyz(5.2198, 3.1447, 7.7277)
Luminance0.0314 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C4F #1C511E
analogous
#391C51 #511C4F #511C35
triadic
#511C4F #4F511C #1C4F51
tetradic
#511C4F #51391C #1C511E #1C3551
square
#511C4F #51391C #1C511E #1C3551
split-complementary
#511C4F #35511C #1C5139
monochromatic
#170816 #240C23 #511C4F #7E2C7B #AC3BA8

Accessibility & contrast

On white

12.89
#511C4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#511C4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511C4F
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C4F#FFFFFF#000000##FFFFFF
##511C4F1.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172D51
Deuteranopia (green-blind)
#29344E
Tritanopia (blue-blind)
#542232
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #511c4f;
/* rgb */ color: rgb(81, 28, 79);
/* oklch */ color: oklch(32.9% 0.106 329.2);
Tailwind
colors: {
  custom: {
    50: '#845c80',
    500: '#511c4f',
    950: '#000000',
  },
}
SCSS
$custom: #511c4f;
$custom-light: #845c80;
$custom-dark: #000000;
JSON
{
  "hex": "#511c4f",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 79
  },
  "hsl": {
    "h": 302.264,
    "s": 48.624,
    "l": 21.373
  },
  "oklch": {
    "l": 0.32924,
    "c": 0.10559,
    "h": 329.2
  },
  "luminance": 0.03144
}

Semantic roles & 50–950 ramp

primary
#511C4F
secondary
#428745
accent
#D85550
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #511C4F

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

Preview Lab → · Contrast checker → · Palette generator →

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