#511D54#511D54

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

Color values

HEX#511D54
RGBrgb(81, 29, 84)
HSLhsl(297, 49%, 22%)
HSVhsv(297, 65%, 33%)
CMYKcmyk(3.6%, 65.5%, 0%, 67.1%)
CIE-LABlab(21.09, 32.74, -22.30)
CIE-LCHlch(21.09, 39.61, 325.74°)
OKLaboklab(33.36% 0.0897 -0.0617)
OKLCHoklch(33.36% 0.109 325.5)
XYZxyz(5.4328, 3.2685, 8.7305)
Luminance0.0327 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D54 #20541D
analogous
#361D54 #511D54 #541D3C
triadic
#511D54 #54511D #1D5451
tetradic
#511D54 #54361D #20541D #1D3C54
square
#511D54 #54361D #20541D #1D3C54
split-complementary
#511D54 #3C541D #1D5436
monochromatic
#160817 #250D27 #511D54 #7D2D81 #A93CAF

Accessibility & contrast

On white

12.70
#511D54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511D54
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D54#FFFFFF#000000##FFFFFF
##511D541.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152F56
Deuteranopia (green-blind)
#273553
Tritanopia (blue-blind)
#532535
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511d54;
/* rgb */ color: rgb(81, 29, 84);
/* oklch */ color: oklch(33.4% 0.109 325.5);
Tailwind
colors: {
  custom: {
    50: '#845d84',
    500: '#511d54',
    950: '#000000',
  },
}
SCSS
$custom: #511d54;
$custom-light: #845d84;
$custom-dark: #000000;
JSON
{
  "hex": "#511d54",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 84
  },
  "hsl": {
    "h": 296.727,
    "s": 48.673,
    "l": 22.157
  },
  "oklch": {
    "l": 0.33363,
    "c": 0.10889,
    "h": 325.5
  },
  "luminance": 0.03268
}

Semantic roles & 50–950 ramp

primary
#511D54
secondary
#478944
accent
#D85057
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511D54

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

Preview Lab → · Contrast checker → · Palette generator →

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