#511D4F#511D4F

#511D4F is a dark, moderate purple. Relative luminance 0.032; OKLCH L 33.1% C 0.104 H 329.1°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#511D4F
RGBrgb(81, 29, 79)
HSLhsl(302, 47%, 22%)
HSVhsv(302, 64%, 32%)
CMYKcmyk(0%, 64.2%, 2.5%, 68.2%)
CIE-LABlab(20.80, 31.72, -19.39)
CIE-LCHlch(20.80, 37.18, 328.57°)
OKLaboklab(33.06% 0.0892 -0.0533)
OKLCHoklch(33.06% 0.104 329.1)
XYZxyz(5.2439, 3.1929, 7.7357)
Luminance0.0319 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D4F #1D511F
analogous
#391D51 #511D4F #511D35
triadic
#511D4F #4F511D #1D4F51
tetradic
#511D4F #51391D #1D511F #1D3551
square
#511D4F #51391D #1D511F #1D3551
split-complementary
#511D4F #35511D #1D5139
monochromatic
#170816 #240D23 #511D4F #7E2D7B #AB3DA7

Accessibility & contrast

On white

12.82
#511D4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#511D4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511D4F
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D4F#FFFFFF#000000##FFFFFF
##511D4F1.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192E51
Deuteranopia (green-blind)
#2A354E
Tritanopia (blue-blind)
#542333
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #511d4f;
/* rgb */ color: rgb(81, 29, 79);
/* oklch */ color: oklch(33.1% 0.104 329.1);
Tailwind
colors: {
  custom: {
    50: '#845d80',
    500: '#511d4f',
    950: '#000000',
  },
}
SCSS
$custom: #511d4f;
$custom-light: #845d80;
$custom-dark: #000000;
JSON
{
  "hex": "#511d4f",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 79
  },
  "hsl": {
    "h": 302.308,
    "s": 47.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.3306,
    "c": 0.10391,
    "h": 329.1
  },
  "luminance": 0.03193
}

Semantic roles & 50–950 ramp

primary
#511D4F
secondary
#448646
accent
#D75651
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #511D4F

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

Preview Lab → · Contrast checker → · Palette generator →

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