#511C57#511C57

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

Color values

HEX#511C57
RGBrgb(81, 28, 87)
HSLhsl(294, 51%, 23%)
HSVhsv(294, 68%, 34%)
CMYKcmyk(6.9%, 67.8%, 0%, 65.9%)
CIE-LABlab(21.09, 33.87, -24.31)
CIE-LCHlch(21.09, 41.69, 324.33°)
OKLaboklab(33.42% 0.0913 -0.0675)
OKLCHoklch(33.42% 0.114 323.5)
XYZxyz(5.5287, 3.2683, 9.3546)
Luminance0.0327 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C57 #22571C
analogous
#331C57 #511C57 #571C40
triadic
#511C57 #57511C #1C5751
tetradic
#511C57 #57331C #22571C #1C4057
square
#511C57 #57331C #22571C #1C4057
split-complementary
#511C57 #40571C #1C5733
monochromatic
#160717 #260D29 #511C57 #7C2B85 #A73AB4

Accessibility & contrast

On white

12.70
#511C57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#511C57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511C57
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C57#FFFFFF#000000##FFFFFF
##511C571.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102F59
Deuteranopia (green-blind)
#253555
Tritanopia (blue-blind)
#522536
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511c57;
/* rgb */ color: rgb(81, 28, 87);
/* oklch */ color: oklch(33.4% 0.114 323.5);
Tailwind
colors: {
  custom: {
    50: '#845c87',
    500: '#511c57',
    950: '#000000',
  },
}
SCSS
$custom: #511c57;
$custom-light: #845c87;
$custom-dark: #000000;
JSON
{
  "hex": "#511c57",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 87
  },
  "hsl": {
    "h": 293.898,
    "s": 51.304,
    "l": 22.549
  },
  "oklch": {
    "l": 0.33422,
    "c": 0.11354,
    "h": 323.5
  },
  "luminance": 0.03268
}

Semantic roles & 50–950 ramp

primary
#511C57
secondary
#4A8D42
accent
#DB4D5B
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511C57

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

Preview Lab → · Contrast checker → · Palette generator →

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