#511E4A#511E4A

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

Color values

HEX#511E4A
RGBrgb(81, 30, 74)
HSLhsl(308, 46%, 22%)
HSVhsv(308, 63%, 32%)
CMYKcmyk(0%, 63%, 8.6%, 68.2%)
CIE-LABlab(20.72, 30.22, -16.12)
CIE-LCHlch(20.72, 34.25, 331.93°)
OKLaboklab(32.92% 0.0869 -0.044)
OKLCHoklch(32.92% 0.097 333.2)
XYZxyz(5.0936, 3.1727, 6.8213)
Luminance0.0317 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E4A #1E5125
analogous
#3F1E51 #511E4A #511E31
triadic
#511E4A #4A511E #1E4A51
tetradic
#511E4A #513F1E #1E5125 #1E3151
square
#511E4A #513F1E #1E5125 #1E3151
split-complementary
#511E4A #31511E #1E513F
monochromatic
#160814 #240D21 #511E4A #7E2F73 #AA3F9C

Accessibility & contrast

On white

12.85
#511E4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511E4A
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E4A#FFFFFF#000000##FFFFFF
##511E4A1.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D2D4B
Deuteranopia (green-blind)
#2D3549
Tritanopia (blue-blind)
#552231
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #511e4a;
/* rgb */ color: rgb(81, 30, 74);
/* oklch */ color: oklch(32.9% 0.097 333.2);
Tailwind
colors: {
  custom: {
    50: '#845d7c',
    500: '#511e4a',
    950: '#000000',
  },
}
SCSS
$custom: #511e4a;
$custom-light: #845d7c;
$custom-dark: #000000;
JSON
{
  "hex": "#511e4a",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 74
  },
  "hsl": {
    "h": 308.235,
    "s": 45.946,
    "l": 21.765
  },
  "oklch": {
    "l": 0.32915,
    "c": 0.09741,
    "h": 333.2
  },
  "luminance": 0.03172
}

Semantic roles & 50–950 ramp

primary
#511E4A
secondary
#45864E
accent
#D66452
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B0409
muted
#7C797B

Preview Lab

Preview with #511E4A

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

Preview Lab → · Contrast checker → · Palette generator →

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