#511D56#511D56

#511D56 is a dark, moderate purple. Relative luminance 0.033; OKLCH L 33.5% C 0.111 H 324.1°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#511D56
RGBrgb(81, 29, 86)
HSLhsl(295, 50%, 23%)
HSVhsv(295, 66%, 34%)
CMYKcmyk(5.8%, 66.3%, 0%, 66.3%)
CIE-LABlab(21.21, 33.16, -23.45)
CIE-LCHlch(21.21, 40.61, 324.73°)
OKLaboklab(33.49% 0.0899 -0.065)
OKLCHoklch(33.49% 0.111 324.1)
XYZxyz(5.5123, 3.3003, 9.1490)
Luminance0.0330 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D56 #22561D
analogous
#351D56 #511D56 #561D3E
triadic
#511D56 #56511D #1D5651
tetradic
#511D56 #56351D #22561D #1D3E56
square
#511D56 #56351D #22561D #1D3E56
split-complementary
#511D56 #3E561D #1D5635
monochromatic
#160817 #260E28 #511D56 #7C2C84 #A73CB2

Accessibility & contrast

On white

12.65
#511D56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#511D56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511D56
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D56#FFFFFF#000000##FFFFFF
##511D561.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132F58
Deuteranopia (green-blind)
#263554
Tritanopia (blue-blind)
#532536
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511d56;
/* rgb */ color: rgb(81, 29, 86);
/* oklch */ color: oklch(33.5% 0.111 324.1);
Tailwind
colors: {
  custom: {
    50: '#845d86',
    500: '#511d56',
    950: '#000000',
  },
}
SCSS
$custom: #511d56;
$custom-light: #845d86;
$custom-dark: #000000;
JSON
{
  "hex": "#511d56",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 86
  },
  "hsl": {
    "h": 294.737,
    "s": 49.565,
    "l": 22.549
  },
  "oklch": {
    "l": 0.33489,
    "c": 0.11092,
    "h": 324.1
  },
  "luminance": 0.033
}

Semantic roles & 50–950 ramp

primary
#511D56
secondary
#4A8B44
accent
#D94F5B
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511D56

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

Preview Lab → · Contrast checker → · Palette generator →

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