#511B56#511B56

#511B56 is a dark, moderate purple. Relative luminance 0.032; OKLCH L 33.2% C 0.114 H 324.2°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#511B56
RGBrgb(81, 27, 86)
HSLhsl(295, 52%, 22%)
HSVhsv(295, 69%, 34%)
CMYKcmyk(5.8%, 68.6%, 0%, 66.3%)
CIE-LABlab(20.85, 34.15, -24.02)
CIE-LCHlch(20.85, 41.75, 324.88°)
OKLaboklab(33.23% 0.0926 -0.0667)
OKLCHoklch(33.23% 0.114 324.2)
XYZxyz(5.4648, 3.2054, 9.1332)
Luminance0.0321 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B56 #20561B
analogous
#341B56 #511B56 #561B3E
triadic
#511B56 #56511B #1B5651
tetradic
#511B56 #56341B #20561B #1B3E56
square
#511B56 #56341B #20561B #1B3E56
split-complementary
#511B56 #3E561B #1B5634
monochromatic
#160717 #250C27 #511B56 #7D2A85 #A938B3

Accessibility & contrast

On white

12.80
#511B56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#511B56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B56
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B56#FFFFFF#000000##FFFFFF
##511B561.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102E58
Deuteranopia (green-blind)
#253454
Tritanopia (blue-blind)
#532436
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #511b56;
/* rgb */ color: rgb(81, 27, 86);
/* oklch */ color: oklch(33.2% 0.114 324.2);
Tailwind
colors: {
  custom: {
    50: '#845c86',
    500: '#511b56',
    950: '#000000',
  },
}
SCSS
$custom: #511b56;
$custom-light: #845c86;
$custom-dark: #000000;
JSON
{
  "hex": "#511b56",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 86
  },
  "hsl": {
    "h": 294.915,
    "s": 52.212,
    "l": 22.157
  },
  "oklch": {
    "l": 0.33228,
    "c": 0.1141,
    "h": 324.2
  },
  "luminance": 0.03205
}

Semantic roles & 50–950 ramp

primary
#511B56
secondary
#478C41
accent
#DC4C58
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511B56

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

Preview Lab → · Contrast checker → · Palette generator →

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