#511A53#511A53

#511A53 is a dark, moderate purple. Relative luminance 0.031; OKLCH L 32.9% C 0.113 H 326.3°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#511A53
RGBrgb(81, 26, 83)
HSLhsl(298, 52%, 21%)
HSVhsv(298, 69%, 33%)
CMYKcmyk(2.4%, 68.7%, 0%, 67.5%)
CIE-LABlab(20.49, 34.02, -22.57)
CIE-LCHlch(20.49, 40.83, 326.44°)
OKLaboklab(32.91% 0.0938 -0.0625)
OKLCHoklch(32.91% 0.113 326.3)
XYZxyz(5.3240, 3.1130, 8.5024)
Luminance0.0311 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A53 #1C531A
analogous
#351A53 #511A53 #531A39
triadic
#511A53 #53511A #1A5351
tetradic
#511A53 #53351A #1C531A #1A3953
square
#511A53 #53351A #1C531A #1A3953
split-complementary
#511A53 #39531A #1A5335
monochromatic
#170717 #240B24 #511A53 #7E2982 #AC37B0

Accessibility & contrast

On white

12.94
#511A53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511A53
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A53#FFFFFF#000000##FFFFFF
##511A531.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112D55
Deuteranopia (green-blind)
#263451
Tritanopia (blue-blind)
#532234
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #511a53;
/* rgb */ color: rgb(81, 26, 83);
/* oklch */ color: oklch(32.9% 0.113 326.3);
Tailwind
colors: {
  custom: {
    50: '#845b83',
    500: '#511a53',
    950: '#000000',
  },
}
SCSS
$custom: #511a53;
$custom-light: #845b83;
$custom-dark: #000000;
JSON
{
  "hex": "#511a53",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 83
  },
  "hsl": {
    "h": 297.895,
    "s": 52.294,
    "l": 21.373
  },
  "oklch": {
    "l": 0.3291,
    "c": 0.11269,
    "h": 326.3
  },
  "luminance": 0.03113
}

Semantic roles & 50–950 ramp

primary
#511A53
secondary
#428940
accent
#DC4C51
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #511A53

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

Preview Lab → · Contrast checker → · Palette generator →

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