#511A57#511A57

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

Color values

HEX#511A57
RGBrgb(81, 26, 87)
HSLhsl(294, 54%, 22%)
HSVhsv(294, 70%, 34%)
CMYKcmyk(6.9%, 70.1%, 0%, 65.9%)
CIE-LABlab(20.74, 34.84, -24.86)
CIE-LCHlch(20.74, 42.80, 324.49°)
OKLaboklab(33.17% 0.094 -0.0691)
OKLCHoklch(33.17% 0.117 323.7)
XYZxyz(5.4829, 3.1766, 9.3393)
Luminance0.0318 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A57 #20571A
analogous
#321A57 #511A57 #571A3F
triadic
#511A57 #57511A #1A5751
tetradic
#511A57 #57321A #20571A #1A3F57
square
#511A57 #57321A #20571A #1A3F57
split-complementary
#511A57 #3F571A #1A5732
monochromatic
#160718 #250C28 #511A57 #7D2886 #A936B5

Accessibility & contrast

On white

12.84
#511A57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511A57
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A57#FFFFFF#000000##FFFFFF
##511A571.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2E59
Deuteranopia (green-blind)
#243455
Tritanopia (blue-blind)
#532436
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #511a57;
/* rgb */ color: rgb(81, 26, 87);
/* oklch */ color: oklch(33.2% 0.117 323.7);
Tailwind
colors: {
  custom: {
    50: '#845b87',
    500: '#511a57',
    950: '#000000',
  },
}
SCSS
$custom: #511a57;
$custom-light: #845b87;
$custom-dark: #000000;
JSON
{
  "hex": "#511a57",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 87
  },
  "hsl": {
    "h": 294.098,
    "s": 53.982,
    "l": 22.157
  },
  "oklch": {
    "l": 0.33168,
    "c": 0.11664,
    "h": 323.7
  },
  "luminance": 0.03176
}

Semantic roles & 50–950 ramp

primary
#511A57
secondary
#478D40
accent
#DD4A59
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511A57

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

Preview Lab → · Contrast checker → · Palette generator →

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