#511C50#511C50

#511C50 is a dark, moderate purple. Relative luminance 0.032; OKLCH L 33.0% C 0.107 H 328.4°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#511C50
RGBrgb(81, 28, 80)
HSLhsl(301, 49%, 21%)
HSVhsv(301, 65%, 32%)
CMYKcmyk(0%, 65.4%, 1.2%, 68.2%)
CIE-LABlab(20.67, 32.43, -20.26)
CIE-LCHlch(20.67, 38.24, 328.00°)
OKLaboklab(32.98% 0.0908 -0.0558)
OKLCHoklch(32.98% 0.107 328.4)
XYZxyz(5.2565, 3.1594, 7.9208)
Luminance0.0316 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C50 #1C511D
analogous
#381C51 #511C50 #511C36
triadic
#511C50 #50511C #1C5051
tetradic
#511C50 #51381C #1C511D #1C3651
square
#511C50 #51381C #1C511D #1C3651
split-complementary
#511C50 #36511C #1C5138
monochromatic
#170816 #240C23 #511C50 #7E2C7D #AC3BAA

Accessibility & contrast

On white

12.87
#511C50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511C50
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C50#FFFFFF#000000##FFFFFF
##511C501.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172D52
Deuteranopia (green-blind)
#29344F
Tritanopia (blue-blind)
#542233
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #511c50;
/* rgb */ color: rgb(81, 28, 80);
/* oklch */ color: oklch(33.0% 0.107 328.4);
Tailwind
colors: {
  custom: {
    50: '#845c81',
    500: '#511c50',
    950: '#000000',
  },
}
SCSS
$custom: #511c50;
$custom-light: #845c81;
$custom-dark: #000000;
JSON
{
  "hex": "#511c50",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 80
  },
  "hsl": {
    "h": 301.132,
    "s": 48.624,
    "l": 21.373
  },
  "oklch": {
    "l": 0.32984,
    "c": 0.10656,
    "h": 328.4
  },
  "luminance": 0.03159
}

Semantic roles & 50–950 ramp

primary
#511C50
secondary
#428744
accent
#D85250
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #511C50

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

Preview Lab → · Contrast checker → · Palette generator →

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