#511D55#511D55

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

Color values

HEX#511D55
RGBrgb(81, 29, 85)
HSLhsl(296, 49%, 22%)
HSVhsv(296, 66%, 33%)
CMYKcmyk(4.7%, 65.9%, 0%, 66.7%)
CIE-LABlab(21.15, 32.95, -22.87)
CIE-LCHlch(21.15, 40.11, 325.23°)
OKLaboklab(33.43% 0.0898 -0.0634)
OKLCHoklch(33.43% 0.11 324.8)
XYZxyz(5.4723, 3.2843, 8.9383)
Luminance0.0328 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D55 #21551D
analogous
#351D55 #511D55 #551D3D
triadic
#511D55 #55511D #1D5551
tetradic
#511D55 #55351D #21551D #1D3D55
square
#511D55 #55351D #21551D #1D3D55
split-complementary
#511D55 #3D551D #1D5535
monochromatic
#160817 #260D27 #511D55 #7C2D83 #A83CB0

Accessibility & contrast

On white

12.68
#511D55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511D55
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D55#FFFFFF#000000##FFFFFF
##511D551.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142F57
Deuteranopia (green-blind)
#273553
Tritanopia (blue-blind)
#532536
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511d55;
/* rgb */ color: rgb(81, 29, 85);
/* oklch */ color: oklch(33.4% 0.110 324.8);
Tailwind
colors: {
  custom: {
    50: '#845d85',
    500: '#511d55',
    950: '#000000',
  },
}
SCSS
$custom: #511d55;
$custom-light: #845d85;
$custom-dark: #000000;
JSON
{
  "hex": "#511d55",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 85
  },
  "hsl": {
    "h": 295.714,
    "s": 49.123,
    "l": 22.353
  },
  "oklch": {
    "l": 0.33426,
    "c": 0.10991,
    "h": 324.8
  },
  "luminance": 0.03284
}

Semantic roles & 50–950 ramp

primary
#511D55
secondary
#498A44
accent
#D94F59
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511D55

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

Preview Lab → · Contrast checker → · Palette generator →

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