#511A52#511A52

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

Color values

HEX#511A52
RGBrgb(81, 26, 82)
HSLhsl(299, 52%, 21%)
HSVhsv(299, 68%, 32%)
CMYKcmyk(1.2%, 68.3%, 0%, 67.8%)
CIE-LABlab(20.43, 33.82, -21.99)
CIE-LCHlch(20.43, 40.34, 326.97°)
OKLaboklab(32.85% 0.0937 -0.0608)
OKLCHoklch(32.85% 0.112 327)
XYZxyz(5.2856, 3.0977, 8.3005)
Luminance0.0310 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A52 #1B521A
analogous
#351A52 #511A52 #521A37
triadic
#511A52 #52511A #1A5251
tetradic
#511A52 #52351A #1B521A #1A3752
square
#511A52 #52351A #1B521A #1A3752
split-complementary
#511A52 #37521A #1A5235
monochromatic
#170717 #230B24 #511A52 #7F2980 #AD37AF

Accessibility & contrast

On white

12.97
#511A52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511A52
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A52#FFFFFF#000000##FFFFFF
##511A521.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122D54
Deuteranopia (green-blind)
#273450
Tritanopia (blue-blind)
#532233
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #511a52;
/* rgb */ color: rgb(81, 26, 82);
/* oklch */ color: oklch(32.8% 0.112 327.0);
Tailwind
colors: {
  custom: {
    50: '#845b83',
    500: '#511a52',
    950: '#000000',
  },
}
SCSS
$custom: #511a52;
$custom-light: #845b83;
$custom-dark: #000000;
JSON
{
  "hex": "#511a52",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 82
  },
  "hsl": {
    "h": 298.929,
    "s": 51.852,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32847,
    "c": 0.11172,
    "h": 327
  },
  "luminance": 0.03097
}

Semantic roles & 50–950 ramp

primary
#511A52
secondary
#418840
accent
#DB4C4F
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #511A52

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

Preview Lab → · Contrast checker → · Palette generator →

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