#511C4B#511C4B

#511C4B is a dark, moderate purple. Relative luminance 0.031; OKLCH L 32.7% C 0.102 H 332.3°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#511C4B
RGBrgb(81, 28, 75)
HSLhsl(307, 49%, 21%)
HSVhsv(307, 65%, 32%)
CMYKcmyk(0%, 65.4%, 7.4%, 68.2%)
CIE-LABlab(20.39, 31.45, -17.31)
CIE-LCHlch(20.39, 35.90, 331.17°)
OKLaboklab(32.69% 0.0901 -0.0473)
OKLCHoklch(32.69% 0.102 332.3)
XYZxyz(5.0786, 3.0882, 6.9838)
Luminance0.0309 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C4B #1C5122
analogous
#3D1C51 #511C4B #511C31
triadic
#511C4B #4B511C #1C4B51
tetradic
#511C4B #513D1C #1C5122 #1C3151
square
#511C4B #513D1C #1C5122 #1C3151
split-complementary
#511C4B #31511C #1C513D
monochromatic
#170815 #240C21 #511C4B #7E2C75 #AC3B9F

Accessibility & contrast

On white

12.98
#511C4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#511C4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511C4B
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C4B#FFFFFF#000000##FFFFFF
##511C4B1.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511c4b;
/* rgb */ color: rgb(81, 28, 75);
/* oklch */ color: oklch(32.7% 0.102 332.3);
Tailwind
colors: {
  custom: {
    50: '#845c7d',
    500: '#511c4b',
    950: '#000000',
  },
}
SCSS
$custom: #511c4b;
$custom-light: #845c7d;
$custom-dark: #000000;
JSON
{
  "hex": "#511c4b",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 75
  },
  "hsl": {
    "h": 306.792,
    "s": 48.624,
    "l": 21.373
  },
  "oklch": {
    "l": 0.32691,
    "c": 0.10179,
    "h": 332.3
  },
  "luminance": 0.03088
}

Semantic roles & 50–950 ramp

primary
#511C4B
secondary
#42874A
accent
#D85F50
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B0409
muted
#7C797B

Preview Lab

Preview with #511C4B

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

Preview Lab → · Contrast checker → · Palette generator →

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