#511A6C#511A6C

#511A6C is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.7% C 0.138 H 312.0°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#511A6C
RGBrgb(81, 26, 108)
HSLhsl(280, 61%, 26%)
HSVhsv(280, 76%, 42%)
CMYKcmyk(25%, 75.9%, 0%, 57.6%)
CIE-LABlab(22.20, 39.49, -36.35)
CIE-LCHlch(22.20, 53.67, 317.37°)
OKLaboklab(34.68% 0.0925 -0.1027)
OKLCHoklch(34.68% 0.138 312)
XYZxyz(6.4690, 3.5710, 14.5329)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A6C #356C1A
analogous
#281A6C #511A6C #6C1A5E
triadic
#511A6C #6C511A #1A6C51
tetradic
#511A6C #6C281A #356C1A #1A5E6C
square
#511A6C #6C281A #356C1A #1A5E6C
split-complementary
#511A6C #5E6C1A #1A6C28
monochromatic
#120619 #2C0E3B #511A6C #76269D #9B33CE

Accessibility & contrast

On white

12.25
#511A6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511A6C
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A6C#FFFFFF#000000##FFFFFF
##511A6C1.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326E
Deuteranopia (green-blind)
#0F366A
Tritanopia (blue-blind)
#4E2C41
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511a6c;
/* rgb */ color: rgb(81, 26, 108);
/* oklch */ color: oklch(34.7% 0.138 312.0);
Tailwind
colors: {
  custom: {
    50: '#855c97',
    500: '#511a6c',
    950: '#000000',
  },
}
SCSS
$custom: #511a6c;
$custom-light: #855c97;
$custom-dark: #000000;
JSON
{
  "hex": "#511a6c",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 108
  },
  "hsl": {
    "h": 280.244,
    "s": 61.194,
    "l": 26.275
  },
  "oklch": {
    "l": 0.34683,
    "c": 0.13827,
    "h": 312
  },
  "luminance": 0.03571
}

Semantic roles & 50–950 ramp

primary
#511A6C
secondary
#60A141
accent
#E44378
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #511A6C

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

Preview Lab → · Contrast checker → · Palette generator →

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