#511C54#511C54

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

Color values

HEX#511C54
RGBrgb(81, 28, 84)
HSLhsl(297, 50%, 22%)
HSVhsv(297, 67%, 33%)
CMYKcmyk(3.6%, 66.7%, 0%, 67.1%)
CIE-LABlab(20.91, 33.24, -22.59)
CIE-LCHlch(20.91, 40.19, 325.81°)
OKLaboklab(33.23% 0.0911 -0.0625)
OKLCHoklch(33.23% 0.111 325.5)
XYZxyz(5.4087, 3.2203, 8.7225)
Luminance0.0322 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C54 #1F541C
analogous
#351C54 #511C54 #541C3B
triadic
#511C54 #54511C #1C5451
tetradic
#511C54 #54351C #1F541C #1C3B54
square
#511C54 #54351C #1F541C #1C3B54
split-complementary
#511C54 #3B541C #1C5435
monochromatic
#160817 #250D26 #511C54 #7D2B82 #AA3BB0

Accessibility & contrast

On white

12.77
#511C54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511C54
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C54#FFFFFF#000000##FFFFFF
##511C541.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132E56
Deuteranopia (green-blind)
#273552
Tritanopia (blue-blind)
#532435
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #511c54;
/* rgb */ color: rgb(81, 28, 84);
/* oklch */ color: oklch(33.2% 0.111 325.5);
Tailwind
colors: {
  custom: {
    50: '#845c84',
    500: '#511c54',
    950: '#000000',
  },
}
SCSS
$custom: #511c54;
$custom-light: #845c84;
$custom-dark: #000000;
JSON
{
  "hex": "#511c54",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 84
  },
  "hsl": {
    "h": 296.786,
    "s": 50,
    "l": 21.961
  },
  "oklch": {
    "l": 0.3323,
    "c": 0.11052,
    "h": 325.5
  },
  "luminance": 0.0322
}

Semantic roles & 50–950 ramp

primary
#511C54
secondary
#468A42
accent
#DA4E56
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511C54

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

Preview Lab → · Contrast checker → · Palette generator →

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