#511A49#511A49

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

Color values

HEX#511A49
RGBrgb(81, 26, 73)
HSLhsl(309, 51%, 21%)
HSVhsv(309, 68%, 32%)
CMYKcmyk(0%, 67.9%, 9.9%, 68.2%)
CIE-LABlab(19.92, 32.08, -16.69)
CIE-LCHlch(19.92, 36.16, 332.52°)
OKLaboklab(32.31% 0.0927 -0.0455)
OKLCHoklch(32.31% 0.103 333.9)
XYZxyz(4.9654, 2.9695, 6.6137)
Luminance0.0297 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A49 #1A5122
analogous
#3D1A51 #511A49 #511A2D
triadic
#511A49 #49511A #1A4951
tetradic
#511A49 #513D1A #1A5122 #1A2D51
square
#511A49 #513D1A #1A5122 #1A2D51
split-complementary
#511A49 #2D511A #1A513D
monochromatic
#170715 #230B1F #511A49 #7F2973 #AE389D

Accessibility & contrast

On white

13.18
#511A49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511A49
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A49#FFFFFF#000000##FFFFFF
##511A491.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192B4A
Deuteranopia (green-blind)
#2B3348
Tritanopia (blue-blind)
#551E2E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #511a49;
/* rgb */ color: rgb(81, 26, 73);
/* oklch */ color: oklch(32.3% 0.103 333.9);
Tailwind
colors: {
  custom: {
    50: '#845b7c',
    500: '#511a49',
    950: '#000000',
  },
}
SCSS
$custom: #511a49;
$custom-light: #845b7c;
$custom-dark: #000000;
JSON
{
  "hex": "#511a49",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 73
  },
  "hsl": {
    "h": 308.727,
    "s": 51.402,
    "l": 20.98
  },
  "oklch": {
    "l": 0.32311,
    "c": 0.10329,
    "h": 333.9
  },
  "luminance": 0.02969
}

Semantic roles & 50–950 ramp

primary
#511A49
secondary
#40874A
accent
#DB624D
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B0409
muted
#7C797B

Preview Lab

Preview with #511A49

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

Preview Lab → · Contrast checker → · Palette generator →

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