#511C56#511C56

#511C56 is a dark, moderate purple. Relative luminance 0.033; OKLCH L 33.4% C 0.113 H 324.2°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#511C56
RGBrgb(81, 28, 86)
HSLhsl(295, 51%, 22%)
HSVhsv(295, 67%, 34%)
CMYKcmyk(5.8%, 67.4%, 0%, 66.3%)
CIE-LABlab(21.03, 33.66, -23.74)
CIE-LCHlch(21.03, 41.19, 324.81°)
OKLaboklab(33.36% 0.0912 -0.0659)
OKLCHoklch(33.36% 0.113 324.2)
XYZxyz(5.4882, 3.2520, 9.1409)
Luminance0.0325 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C56 #21561C
analogous
#341C56 #511C56 #561C3E
triadic
#511C56 #56511C #1C5651
tetradic
#511C56 #56341C #21561C #1C3E56
square
#511C56 #56341C #21561C #1C3E56
split-complementary
#511C56 #3E561C #1C5634
monochromatic
#160817 #260D28 #511C56 #7C2B84 #A83AB2

Accessibility & contrast

On white

12.72
#511C56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#511C56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511C56
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C56#FFFFFF#000000##FFFFFF
##511C561.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511c56;
/* rgb */ color: rgb(81, 28, 86);
/* oklch */ color: oklch(33.4% 0.113 324.2);
Tailwind
colors: {
  custom: {
    50: '#845c86',
    500: '#511c56',
    950: '#000000',
  },
}
SCSS
$custom: #511c56;
$custom-light: #845c86;
$custom-dark: #000000;
JSON
{
  "hex": "#511c56",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 86
  },
  "hsl": {
    "h": 294.828,
    "s": 50.877,
    "l": 22.353
  },
  "oklch": {
    "l": 0.33357,
    "c": 0.11253,
    "h": 324.2
  },
  "luminance": 0.03252
}

Semantic roles & 50–950 ramp

primary
#511C56
secondary
#498C42
accent
#DA4D5A
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511C56

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

Preview Lab → · Contrast checker → · Palette generator →

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