#511D4C#511D4C

#511D4C is a dark, moderate purple. Relative luminance 0.032; OKLCH L 32.9% C 0.101 H 331.5°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#511D4C
RGBrgb(81, 29, 76)
HSLhsl(306, 47%, 22%)
HSVhsv(306, 64%, 32%)
CMYKcmyk(0%, 64.2%, 6.2%, 68.2%)
CIE-LABlab(20.64, 31.13, -17.61)
CIE-LCHlch(20.64, 35.77, 330.50°)
OKLaboklab(32.89% 0.0888 -0.0482)
OKLCHoklch(32.89% 0.101 331.5)
XYZxyz(5.1372, 3.1502, 7.1736)
Luminance0.0315 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D4C #1D5122
analogous
#3C1D51 #511D4C #511D32
triadic
#511D4C #4C511D #1D4C51
tetradic
#511D4C #513C1D #1D5122 #1D3251
square
#511D4C #513C1D #1D5122 #1D3251
split-complementary
#511D4C #32511D #1D513C
monochromatic
#170815 #240D22 #511D4C #7E2D76 #AB3DA1

Accessibility & contrast

On white

12.88
#511D4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511D4C
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D4C#FFFFFF#000000##FFFFFF
##511D4C1.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2D4D
Deuteranopia (green-blind)
#2B344B
Tritanopia (blue-blind)
#542231
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #511d4c;
/* rgb */ color: rgb(81, 29, 76);
/* oklch */ color: oklch(32.9% 0.101 331.5);
Tailwind
colors: {
  custom: {
    50: '#845d7e',
    500: '#511d4c',
    950: '#000000',
  },
}
SCSS
$custom: #511d4c;
$custom-light: #845d7e;
$custom-dark: #000000;
JSON
{
  "hex": "#511d4c",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 76
  },
  "hsl": {
    "h": 305.769,
    "s": 47.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.32886,
    "c": 0.10103,
    "h": 331.5
  },
  "luminance": 0.0315
}

Semantic roles & 50–950 ramp

primary
#511D4C
secondary
#44864A
accent
#D75E51
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #511D4C

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

Preview Lab → · Contrast checker → · Palette generator →

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