#511A51#511A51

#511A51 is a dark, moderate purple. Relative luminance 0.031; OKLCH L 32.8% C 0.111 H 327.7°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#511A51
RGBrgb(81, 26, 81)
HSLhsl(300, 51%, 21%)
HSVhsv(300, 68%, 32%)
CMYKcmyk(0%, 67.9%, 0%, 68.2%)
CIE-LABlab(20.37, 33.62, -21.41)
CIE-LCHlch(20.37, 39.86, 327.51°)
OKLaboklab(32.78% 0.0937 -0.0591)
OKLCHoklch(32.78% 0.111 327.7)
XYZxyz(5.2479, 3.0825, 8.1016)
Luminance0.0308 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A51 #1A511A
analogous
#351A51 #511A51 #511A35
triadic
#511A51 #51511A #1A5151
tetradic
#511A51 #51351A #1A511A #1A3551
square
#511A51 #51351A #1A511A #1A3551
split-complementary
#511A51 #35511A #1A5135
monochromatic
#170717 #230B23 #511A51 #7F297F #AE38AE

Accessibility & contrast

On white

12.99
#511A51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511A51
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A51#FFFFFF#000000##FFFFFF
##511A511.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132C53
Deuteranopia (green-blind)
#27344F
Tritanopia (blue-blind)
#542133
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #511a51;
/* rgb */ color: rgb(81, 26, 81);
/* oklch */ color: oklch(32.8% 0.111 327.7);
Tailwind
colors: {
  custom: {
    50: '#845b82',
    500: '#511a51',
    950: '#000000',
  },
}
SCSS
$custom: #511a51;
$custom-light: #845b82;
$custom-dark: #000000;
JSON
{
  "hex": "#511a51",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 81
  },
  "hsl": {
    "h": 300,
    "s": 51.402,
    "l": 20.98
  },
  "oklch": {
    "l": 0.32785,
    "c": 0.11075,
    "h": 327.7
  },
  "luminance": 0.03082
}

Semantic roles & 50–950 ramp

primary
#511A51
secondary
#408740
accent
#DB4D4D
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #511A51

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

Preview Lab → · Contrast checker → · Palette generator →

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