#511A6B#511A6B

#511A6B is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.6% C 0.137 H 312.5°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#511A6B
RGBrgb(81, 26, 107)
HSLhsl(281, 61%, 26%)
HSVhsv(281, 76%, 42%)
CMYKcmyk(24.3%, 75.7%, 0%, 58%)
CIE-LABlab(22.12, 39.26, -35.82)
CIE-LCHlch(22.12, 53.15, 317.62°)
OKLaboklab(34.61% 0.0927 -0.1012)
OKLCHoklch(34.61% 0.137 312.5)
XYZxyz(6.4161, 3.5498, 14.2543)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A6B #346B1A
analogous
#281A6B #511A6B #6B1A5C
triadic
#511A6B #6B511A #1A6B51
tetradic
#511A6B #6B281A #346B1A #1A5C6B
square
#511A6B #6B281A #346B1A #1A5C6B
split-complementary
#511A6B #5C6B1A #1A6B28
monochromatic
#130619 #2C0E3A #511A6B #76269C #9B32CD

Accessibility & contrast

On white

12.28
#511A6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#511A6B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511A6B
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A6B#FFFFFF#000000##FFFFFF
##511A6B1.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326D
Deuteranopia (green-blind)
#113669
Tritanopia (blue-blind)
#4E2C41
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511a6b;
/* rgb */ color: rgb(81, 26, 107);
/* oklch */ color: oklch(34.6% 0.137 312.5);
Tailwind
colors: {
  custom: {
    50: '#855c96',
    500: '#511a6b',
    950: '#000000',
  },
}
SCSS
$custom: #511a6b;
$custom-light: #855c96;
$custom-dark: #000000;
JSON
{
  "hex": "#511a6b",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 107
  },
  "hsl": {
    "h": 280.741,
    "s": 60.902,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34605,
    "c": 0.13722,
    "h": 312.5
  },
  "luminance": 0.0355
}

Semantic roles & 50–950 ramp

primary
#511A6B
secondary
#5FA040
accent
#E44477
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #511A6B

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

Preview Lab → · Contrast checker → · Palette generator →

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