#511C4A#511C4A

#511C4A is a dark, moderate purple. Relative luminance 0.031; OKLCH L 32.6% C 0.101 H 333.1°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#511C4A
RGBrgb(81, 28, 74)
HSLhsl(308, 49%, 21%)
HSVhsv(308, 65%, 32%)
CMYKcmyk(0%, 65.4%, 8.6%, 68.2%)
CIE-LABlab(20.34, 31.26, -16.71)
CIE-LCHlch(20.34, 35.45, 331.87°)
OKLaboklab(32.63% 0.09 -0.0456)
OKLCHoklch(32.63% 0.101 333.1)
XYZxyz(5.0446, 3.0746, 6.8050)
Luminance0.0307 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C4A #1C5123
analogous
#3E1C51 #511C4A #511C30
triadic
#511C4A #4A511C #1C4A51
tetradic
#511C4A #513E1C #1C5123 #1C3051
square
#511C4A #513E1C #1C5123 #1C3051
split-complementary
#511C4A #30511C #1C513E
monochromatic
#170815 #240C20 #511C4A #7E2C74 #AC3B9D

Accessibility & contrast

On white

13.00
#511C4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#511C4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511C4A
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C4A#FFFFFF#000000##FFFFFF
##511C4A1.0013.001.6113.00
#FFFFFF13.001.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2C4B
Deuteranopia (green-blind)
#2B3449
Tritanopia (blue-blind)
#552030
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #511c4a;
/* rgb */ color: rgb(81, 28, 74);
/* oklch */ color: oklch(32.6% 0.101 333.1);
Tailwind
colors: {
  custom: {
    50: '#845c7c',
    500: '#511c4a',
    950: '#000000',
  },
}
SCSS
$custom: #511c4a;
$custom-light: #845c7c;
$custom-dark: #000000;
JSON
{
  "hex": "#511c4a",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 74
  },
  "hsl": {
    "h": 307.925,
    "s": 48.624,
    "l": 21.373
  },
  "oklch": {
    "l": 0.32634,
    "c": 0.10086,
    "h": 333.1
  },
  "luminance": 0.03074
}

Semantic roles & 50–950 ramp

primary
#511C4A
secondary
#42874B
accent
#D86250
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B0409
muted
#7C797B

Preview Lab

Preview with #511C4A

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

Preview Lab → · Contrast checker → · Palette generator →

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