#511A54#511A54

#511A54 is a dark, moderate purple. Relative luminance 0.031; OKLCH L 33.0% C 0.114 H 325.6°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#511A54
RGBrgb(81, 26, 84)
HSLhsl(297, 53%, 22%)
HSVhsv(297, 69%, 33%)
CMYKcmyk(3.6%, 69%, 0%, 67.1%)
CIE-LABlab(20.55, 34.23, -23.15)
CIE-LCHlch(20.55, 41.32, 325.93°)
OKLaboklab(32.97% 0.0938 -0.0641)
OKLCHoklch(32.97% 0.114 325.6)
XYZxyz(5.3629, 3.1285, 8.7072)
Luminance0.0313 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A54 #1D541A
analogous
#341A54 #511A54 #541A3A
triadic
#511A54 #54511A #1A5451
tetradic
#511A54 #54341A #1D541A #1A3A54
square
#511A54 #54341A #1D541A #1A3A54
split-complementary
#511A54 #3A541A #1A5434
monochromatic
#170717 #240C25 #511A54 #7E2883 #AB37B1

Accessibility & contrast

On white

12.92
#511A54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511A54
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A54#FFFFFF#000000##FFFFFF
##511A541.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102D56
Deuteranopia (green-blind)
#253452
Tritanopia (blue-blind)
#532234
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #511a54;
/* rgb */ color: rgb(81, 26, 84);
/* oklch */ color: oklch(33.0% 0.114 325.6);
Tailwind
colors: {
  custom: {
    50: '#845b84',
    500: '#511a54',
    950: '#000000',
  },
}
SCSS
$custom: #511a54;
$custom-light: #845b84;
$custom-dark: #000000;
JSON
{
  "hex": "#511a54",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 84
  },
  "hsl": {
    "h": 296.897,
    "s": 52.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.32974,
    "c": 0.11367,
    "h": 325.6
  },
  "luminance": 0.03128
}

Semantic roles & 50–950 ramp

primary
#511A54
secondary
#448A40
accent
#DC4C53
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511A54

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

Preview Lab → · Contrast checker → · Palette generator →

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