#511C53#511C53

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

Color values

HEX#511C53
RGBrgb(81, 28, 83)
HSLhsl(298, 50%, 22%)
HSVhsv(298, 66%, 33%)
CMYKcmyk(2.4%, 66.3%, 0%, 67.5%)
CIE-LABlab(20.85, 33.04, -22.01)
CIE-LCHlch(20.85, 39.70, 326.33°)
OKLaboklab(33.17% 0.091 -0.0609)
OKLCHoklch(33.17% 0.11 326.2)
XYZxyz(5.3698, 3.2047, 8.5177)
Luminance0.0320 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C53 #1E531C
analogous
#361C53 #511C53 #531C3A
triadic
#511C53 #53511C #1C5351
tetradic
#511C53 #53361C #1E531C #1C3A53
square
#511C53 #53361C #1E531C #1C3A53
split-complementary
#511C53 #3A531C #1C5336
monochromatic
#160817 #240D25 #511C53 #7E2B81 #AA3BAF

Accessibility & contrast

On white

12.80
#511C53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511C53
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C53#FFFFFF#000000##FFFFFF
##511C531.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142E55
Deuteranopia (green-blind)
#273452
Tritanopia (blue-blind)
#532334
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #511c53;
/* rgb */ color: rgb(81, 28, 83);
/* oklch */ color: oklch(33.2% 0.110 326.2);
Tailwind
colors: {
  custom: {
    50: '#845c83',
    500: '#511c53',
    950: '#000000',
  },
}
SCSS
$custom: #511c53;
$custom-light: #845c83;
$custom-dark: #000000;
JSON
{
  "hex": "#511c53",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 83
  },
  "hsl": {
    "h": 297.818,
    "s": 49.55,
    "l": 21.765
  },
  "oklch": {
    "l": 0.33168,
    "c": 0.10951,
    "h": 326.2
  },
  "luminance": 0.03204
}

Semantic roles & 50–950 ramp

primary
#511C53
secondary
#458942
accent
#D94F54
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #511C53

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

Preview Lab → · Contrast checker → · Palette generator →

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