#511A48#511A48

#511A48 is a dark, moderate purple. Relative luminance 0.030; OKLCH L 32.3% C 0.102 H 334.7°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#511A48
RGBrgb(81, 26, 72)
HSLhsl(310, 51%, 21%)
HSVhsv(310, 68%, 32%)
CMYKcmyk(0%, 67.9%, 11.1%, 68.2%)
CIE-LABlab(19.87, 31.89, -16.08)
CIE-LCHlch(19.87, 35.72, 333.24°)
OKLaboklab(32.26% 0.0926 -0.0438)
OKLCHoklch(32.26% 0.102 334.7)
XYZxyz(4.9325, 2.9564, 6.4405)
Luminance0.0296 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A48 #1A5123
analogous
#3E1A51 #511A48 #511A2C
triadic
#511A48 #48511A #1A4851
tetradic
#511A48 #513E1A #1A5123 #1A2C51
square
#511A48 #513E1A #1A5123 #1A2C51
split-complementary
#511A48 #2C511A #1A513E
monochromatic
#170715 #230B1F #511A48 #7F2971 #AE389A

Accessibility & contrast

On white

13.20
#511A48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#511A48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511A48
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A48#FFFFFF#000000##FFFFFF
##511A481.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2B49
Deuteranopia (green-blind)
#2B3347
Tritanopia (blue-blind)
#551E2E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #511a48;
/* rgb */ color: rgb(81, 26, 72);
/* oklch */ color: oklch(32.3% 0.102 334.7);
Tailwind
colors: {
  custom: {
    50: '#845b7b',
    500: '#511a48',
    950: '#000000',
  },
}
SCSS
$custom: #511a48;
$custom-light: #845b7b;
$custom-dark: #000000;
JSON
{
  "hex": "#511a48",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 72
  },
  "hsl": {
    "h": 309.818,
    "s": 51.402,
    "l": 20.98
  },
  "oklch": {
    "l": 0.32255,
    "c": 0.1024,
    "h": 334.7
  },
  "luminance": 0.02956
}

Semantic roles & 50–950 ramp

primary
#511A48
secondary
#40874B
accent
#DB644D
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0409
muted
#7C797B

Preview Lab

Preview with #511A48

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

Preview Lab → · Contrast checker → · Palette generator →

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