#511A4C#511A4C

#511A4C is a dark, moderate purple. Relative luminance 0.030; OKLCH L 32.5% C 0.106 H 331.5°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#511A4C
RGBrgb(81, 26, 76)
HSLhsl(305, 51%, 21%)
HSVhsv(305, 68%, 32%)
CMYKcmyk(0%, 67.9%, 6.2%, 68.2%)
CIE-LABlab(20.09, 32.64, -18.47)
CIE-LCHlch(20.09, 37.51, 330.49°)
OKLaboklab(32.48% 0.0931 -0.0506)
OKLCHoklch(32.48% 0.106 331.5)
XYZxyz(5.0672, 3.0103, 7.1502)
Luminance0.0301 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A4C #1A511F
analogous
#3A1A51 #511A4C #511A30
triadic
#511A4C #4C511A #1A4C51
tetradic
#511A4C #513A1A #1A511F #1A3051
square
#511A4C #513A1A #1A511F #1A3051
split-complementary
#511A4C #30511A #1A513A
monochromatic
#170716 #230B21 #511A4C #7F2977 #AE38A3

Accessibility & contrast

On white

13.11
#511A4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#511A4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511A4C
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A4C#FFFFFF#000000##FFFFFF
##511A4C1.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172C4E
Deuteranopia (green-blind)
#29334B
Tritanopia (blue-blind)
#541F30
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #511a4c;
/* rgb */ color: rgb(81, 26, 76);
/* oklch */ color: oklch(32.5% 0.106 331.5);
Tailwind
colors: {
  custom: {
    50: '#845b7e',
    500: '#511a4c',
    950: '#000000',
  },
}
SCSS
$custom: #511a4c;
$custom-light: #845b7e;
$custom-dark: #000000;
JSON
{
  "hex": "#511a4c",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 76
  },
  "hsl": {
    "h": 305.455,
    "s": 51.402,
    "l": 20.98
  },
  "oklch": {
    "l": 0.32483,
    "c": 0.10602,
    "h": 331.5
  },
  "luminance": 0.0301
}

Semantic roles & 50–950 ramp

primary
#511A4C
secondary
#408746
accent
#DB5A4D
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #511A4C

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

Preview Lab → · Contrast checker → · Palette generator →

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