#511C65#511C65

#511C65 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.4% C 0.128 H 315.2°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#511C65
RGBrgb(81, 28, 101)
HSLhsl(284, 57%, 25%)
HSVhsv(284, 72%, 40%)
CMYKcmyk(19.8%, 72.3%, 0%, 60.4%)
CIE-LABlab(22.02, 36.95, -32.08)
CIE-LCHlch(22.02, 48.94, 319.03°)
OKLaboklab(34.39% 0.091 -0.0902)
OKLCHoklch(34.39% 0.128 315.2)
XYZxyz(6.1572, 3.5196, 12.6644)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C65 #30651C
analogous
#2D1C65 #511C65 #651C54
triadic
#511C65 #65511C #1C6551
tetradic
#511C65 #652D1C #30651C #1C5465
square
#511C65 #652D1C #30651C #1C5465
split-complementary
#511C65 #54651C #1C652D
monochromatic
#130718 #2B0F35 #511C65 #772995 #9E37C5

Accessibility & contrast

On white

12.33
#511C65 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#511C65 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511C65
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C65#FFFFFF#000000##FFFFFF
##511C651.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003267
Deuteranopia (green-blind)
#1A3663
Tritanopia (blue-blind)
#4F2A3E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511c65;
/* rgb */ color: rgb(81, 28, 101);
/* oklch */ color: oklch(34.4% 0.128 315.2);
Tailwind
colors: {
  custom: {
    50: '#855d91',
    500: '#511c65',
    950: '#000000',
  },
}
SCSS
$custom: #511c65;
$custom-light: #855d91;
$custom-dark: #000000;
JSON
{
  "hex": "#511c65",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 101
  },
  "hsl": {
    "h": 283.562,
    "s": 56.589,
    "l": 25.294
  },
  "oklch": {
    "l": 0.34388,
    "c": 0.12816,
    "h": 315.2
  },
  "luminance": 0.03519
}

Semantic roles & 50–950 ramp

primary
#511C65
secondary
#5B9A43
accent
#E04872
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #511C65

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

Preview Lab → · Contrast checker → · Palette generator →

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