#511A56#511A56

#511A56 is a dark, moderate purple. Relative luminance 0.032; OKLCH L 33.1% C 0.116 H 324.3°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#511A56
RGBrgb(81, 26, 86)
HSLhsl(295, 54%, 22%)
HSVhsv(295, 70%, 34%)
CMYKcmyk(5.8%, 69.8%, 0%, 66.3%)
CIE-LABlab(20.67, 34.64, -24.29)
CIE-LCHlch(20.67, 42.30, 324.96°)
OKLaboklab(33.1% 0.0939 -0.0675)
OKLCHoklch(33.1% 0.116 324.3)
XYZxyz(5.4423, 3.1603, 9.1256)
Luminance0.0316 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A56 #1F561A
analogous
#331A56 #511A56 #561A3D
triadic
#511A56 #56511A #1A5651
tetradic
#511A56 #56331A #1F561A #1A3D56
square
#511A56 #56331A #1F561A #1A3D56
split-complementary
#511A56 #3D561A #1A5633
monochromatic
#160717 #250C27 #511A56 #7D2885 #AA36B4

Accessibility & contrast

On white

12.87
#511A56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#511A56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511A56
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A56#FFFFFF#000000##FFFFFF
##511A561.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2D58
Deuteranopia (green-blind)
#243454
Tritanopia (blue-blind)
#532335
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #511a56;
/* rgb */ color: rgb(81, 26, 86);
/* oklch */ color: oklch(33.1% 0.116 324.3);
Tailwind
colors: {
  custom: {
    50: '#845b86',
    500: '#511a56',
    950: '#000000',
  },
}
SCSS
$custom: #511a56;
$custom-light: #845b86;
$custom-dark: #000000;
JSON
{
  "hex": "#511a56",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 86
  },
  "hsl": {
    "h": 295,
    "s": 53.571,
    "l": 21.961
  },
  "oklch": {
    "l": 0.33103,
    "c": 0.11564,
    "h": 324.3
  },
  "luminance": 0.0316
}

Semantic roles & 50–950 ramp

primary
#511A56
secondary
#468C40
accent
#DD4B57
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511A56

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

Preview Lab → · Contrast checker → · Palette generator →

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