#511C6B#511C6B

#511C6B is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.8% C 0.135 H 312.2°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#511C6B
RGBrgb(81, 28, 107)
HSLhsl(280, 59%, 26%)
HSVhsv(280, 74%, 42%)
CMYKcmyk(24.3%, 73.8%, 0%, 58%)
CIE-LABlab(22.45, 38.34, -35.30)
CIE-LCHlch(22.45, 52.11, 317.37°)
OKLaboklab(34.84% 0.0904 -0.0997)
OKLCHoklch(34.84% 0.135 312.2)
XYZxyz(6.4620, 3.6416, 14.2696)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C6B #366B1C
analogous
#2A1C6B #511C6B #6B1C5E
triadic
#511C6B #6B511C #1C6B51
tetradic
#511C6B #6B2A1C #366B1C #1C5E6B
square
#511C6B #6B2A1C #366B1C #1C5E6B
split-complementary
#511C6B #5E6B1C #1C6B2A
monochromatic
#120618 #2C0F3A #511C6B #76299C #9A37CB

Accessibility & contrast

On white

12.15
#511C6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#511C6B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511C6B
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C6B#FFFFFF#000000##FFFFFF
##511C6B1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336D
Deuteranopia (green-blind)
#133769
Tritanopia (blue-blind)
#4E2D41
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #511c6b;
/* rgb */ color: rgb(81, 28, 107);
/* oklch */ color: oklch(34.8% 0.135 312.2);
Tailwind
colors: {
  custom: {
    50: '#855d96',
    500: '#511c6b',
    950: '#000000',
  },
}
SCSS
$custom: #511c6b;
$custom-light: #855d96;
$custom-dark: #000000;
JSON
{
  "hex": "#511c6b",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 107
  },
  "hsl": {
    "h": 280.253,
    "s": 58.519,
    "l": 26.471
  },
  "oklch": {
    "l": 0.34837,
    "c": 0.13457,
    "h": 312.2
  },
  "luminance": 0.03641
}

Semantic roles & 50–950 ramp

primary
#511C6B
secondary
#62A043
accent
#E24679
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #511C6B

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

Preview Lab → · Contrast checker → · Palette generator →

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