#511C6A#511C6A

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

Color values

HEX#511C6A
RGBrgb(81, 28, 106)
HSLhsl(281, 58%, 26%)
HSVhsv(281, 74%, 42%)
CMYKcmyk(23.6%, 73.6%, 0%, 58.4%)
CIE-LABlab(22.38, 38.11, -34.77)
CIE-LCHlch(22.38, 51.58, 317.62°)
OKLaboklab(34.76% 0.0905 -0.0981)
OKLCHoklch(34.76% 0.134 312.7)
XYZxyz(6.4096, 3.6206, 13.9941)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C6A #356A1C
analogous
#2A1C6A #511C6A #6A1C5C
triadic
#511C6A #6A511C #1C6A51
tetradic
#511C6A #6A2A1C #356A1C #1C5C6A
square
#511C6A #6A2A1C #356A1C #1C5C6A
split-complementary
#511C6A #5C6A1C #1C6A2A
monochromatic
#120618 #2C0F3A #511C6A #76299A #9B36CA

Accessibility & contrast

On white

12.18
#511C6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#511C6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511C6A
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C6A#FFFFFF#000000##FFFFFF
##511C6A1.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336C
Deuteranopia (green-blind)
#153768
Tritanopia (blue-blind)
#4E2C41
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511c6a;
/* rgb */ color: rgb(81, 28, 106);
/* oklch */ color: oklch(34.8% 0.134 312.7);
Tailwind
colors: {
  custom: {
    50: '#855d95',
    500: '#511c6a',
    950: '#000000',
  },
}
SCSS
$custom: #511c6a;
$custom-light: #855d95;
$custom-dark: #000000;
JSON
{
  "hex": "#511c6a",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 106
  },
  "hsl": {
    "h": 280.769,
    "s": 58.209,
    "l": 26.275
  },
  "oklch": {
    "l": 0.34761,
    "c": 0.1335,
    "h": 312.7
  },
  "luminance": 0.0362
}

Semantic roles & 50–950 ramp

primary
#511C6A
secondary
#609F43
accent
#E14678
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #511C6A

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

Preview Lab → · Contrast checker → · Palette generator →

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