#511B54#511B54

#511B54 is a dark, moderate purple. Relative luminance 0.032; OKLCH L 33.1% C 0.112 H 325.6°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#511B54
RGBrgb(81, 27, 84)
HSLhsl(297, 51%, 22%)
HSVhsv(297, 68%, 33%)
CMYKcmyk(3.6%, 67.9%, 0%, 67.1%)
CIE-LABlab(20.73, 33.74, -22.87)
CIE-LCHlch(20.73, 40.76, 325.87°)
OKLaboklab(33.1% 0.0925 -0.0633)
OKLCHoklch(33.1% 0.112 325.6)
XYZxyz(5.3854, 3.1736, 8.7147)
Luminance0.0317 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B54 #1E541B
analogous
#351B54 #511B54 #541B3B
triadic
#511B54 #54511B #1B5451
tetradic
#511B54 #54351B #1E541B #1B3B54
square
#511B54 #54351B #1E541B #1B3B54
split-complementary
#511B54 #3B541B #1B5435
monochromatic
#160717 #240C26 #511B54 #7E2A82 #AA39B1

Accessibility & contrast

On white

12.85
#511B54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#511B54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B54
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B54#FFFFFF#000000##FFFFFF
##511B541.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122E56
Deuteranopia (green-blind)
#263452
Tritanopia (blue-blind)
#532334
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #511b54;
/* rgb */ color: rgb(81, 27, 84);
/* oklch */ color: oklch(33.1% 0.112 325.6);
Tailwind
colors: {
  custom: {
    50: '#845c84',
    500: '#511b54',
    950: '#000000',
  },
}
SCSS
$custom: #511b54;
$custom-light: #845c84;
$custom-dark: #000000;
JSON
{
  "hex": "#511b54",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 84
  },
  "hsl": {
    "h": 296.842,
    "s": 51.351,
    "l": 21.765
  },
  "oklch": {
    "l": 0.331,
    "c": 0.11211,
    "h": 325.6
  },
  "luminance": 0.03173
}

Semantic roles & 50–950 ramp

primary
#511B54
secondary
#458A41
accent
#DB4D54
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511B54

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

Preview Lab → · Contrast checker → · Palette generator →

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