#511C51#511C51

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

Color values

HEX#511C51
RGBrgb(81, 28, 81)
HSLhsl(300, 49%, 21%)
HSVhsv(300, 65%, 32%)
CMYKcmyk(0%, 65.4%, 0%, 68.2%)
CIE-LABlab(20.73, 32.63, -20.85)
CIE-LCHlch(20.73, 38.72, 327.43°)
OKLaboklab(33.04% 0.0909 -0.0575)
OKLCHoklch(33.04% 0.108 327.7)
XYZxyz(5.2937, 3.1743, 8.1169)
Luminance0.0317 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C51 #1C511C
analogous
#371C51 #511C51 #511C37
triadic
#511C51 #51511C #1C5151
tetradic
#511C51 #51371C #1C511C #1C3751
square
#511C51 #51371C #1C511C #1C3751
split-complementary
#511C51 #37511C #1C5137
monochromatic
#170817 #240C24 #511C51 #7E2C7E #AC3BAC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##511C51#FFFFFF#000000##FFFFFF
##511C511.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)
#162D53
Deuteranopia (green-blind)
#283450
Tritanopia (blue-blind)
#542333
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #511c51;
/* rgb */ color: rgb(81, 28, 81);
/* oklch */ color: oklch(33.0% 0.108 327.7);
Tailwind
colors: {
  custom: {
    50: '#845c82',
    500: '#511c51',
    950: '#000000',
  },
}
SCSS
$custom: #511c51;
$custom-light: #845c82;
$custom-dark: #000000;
JSON
{
  "hex": "#511c51",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 81
  },
  "hsl": {
    "h": 300,
    "s": 48.624,
    "l": 21.373
  },
  "oklch": {
    "l": 0.33044,
    "c": 0.10754,
    "h": 327.7
  },
  "luminance": 0.03174
}

Semantic roles & 50–950 ramp

primary
#511C51
secondary
#428742
accent
#D85050
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #511C51

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

Preview Lab → · Contrast checker → · Palette generator →

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