#511C52#511C52

#511C52 is a dark, moderate purple. Relative luminance 0.032; OKLCH L 33.1% C 0.109 H 326.9°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#511C52
RGBrgb(81, 28, 82)
HSLhsl(299, 49%, 22%)
HSVhsv(299, 66%, 32%)
CMYKcmyk(1.2%, 65.9%, 0%, 67.8%)
CIE-LABlab(20.79, 32.83, -21.43)
CIE-LCHlch(20.79, 39.21, 326.87°)
OKLaboklab(33.11% 0.091 -0.0592)
OKLCHoklch(33.11% 0.109 326.9)
XYZxyz(5.3315, 3.1894, 8.3158)
Luminance0.0319 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C52 #1D521C
analogous
#361C52 #511C52 #521C38
triadic
#511C52 #52511C #1C5251
tetradic
#511C52 #52361C #1D521C #1C3852
square
#511C52 #52361C #1D521C #1C3852
split-complementary
#511C52 #38521C #1C5236
monochromatic
#170817 #240C24 #511C52 #7E2C80 #AB3BAD

Accessibility & contrast

On white

12.82
#511C52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511C52
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C52#FFFFFF#000000##FFFFFF
##511C521.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152E54
Deuteranopia (green-blind)
#283451
Tritanopia (blue-blind)
#532334
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #511c52;
/* rgb */ color: rgb(81, 28, 82);
/* oklch */ color: oklch(33.1% 0.109 326.9);
Tailwind
colors: {
  custom: {
    50: '#845c83',
    500: '#511c52',
    950: '#000000',
  },
}
SCSS
$custom: #511c52;
$custom-light: #845c83;
$custom-dark: #000000;
JSON
{
  "hex": "#511c52",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 82
  },
  "hsl": {
    "h": 298.889,
    "s": 49.091,
    "l": 21.569
  },
  "oklch": {
    "l": 0.33106,
    "c": 0.10852,
    "h": 326.9
  },
  "luminance": 0.03189
}

Semantic roles & 50–950 ramp

primary
#511C52
secondary
#448842
accent
#D94F52
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #511C52

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

Preview Lab → · Contrast checker → · Palette generator →

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