#511A6A#511A6A

#511A6A is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.5% C 0.136 H 313.0°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#511A6A
RGBrgb(81, 26, 106)
HSLhsl(281, 61%, 26%)
HSVhsv(281, 75%, 42%)
CMYKcmyk(23.6%, 75.5%, 0%, 58.4%)
CIE-LABlab(22.05, 39.03, -35.29)
CIE-LCHlch(22.05, 52.62, 317.88°)
OKLaboklab(34.53% 0.0928 -0.0996)
OKLCHoklch(34.53% 0.136 313)
XYZxyz(6.3638, 3.5289, 13.9788)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A6A #336A1A
analogous
#291A6A #511A6A #6A1A5B
triadic
#511A6A #6A511A #1A6A51
tetradic
#511A6A #6A291A #336A1A #1A5B6A
square
#511A6A #6A291A #336A1A #1A5B6A
split-complementary
#511A6A #5B6A1A #1A6A29
monochromatic
#130619 #2B0E39 #511A6A #77269B #9C32CC

Accessibility & contrast

On white

12.31
#511A6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511A6A
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A6A#FFFFFF#000000##FFFFFF
##511A6A1.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326C
Deuteranopia (green-blind)
#123668
Tritanopia (blue-blind)
#4E2B40
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511a6a;
/* rgb */ color: rgb(81, 26, 106);
/* oklch */ color: oklch(34.5% 0.136 313.0);
Tailwind
colors: {
  custom: {
    50: '#855c95',
    500: '#511a6a',
    950: '#000000',
  },
}
SCSS
$custom: #511a6a;
$custom-light: #855c95;
$custom-dark: #000000;
JSON
{
  "hex": "#511a6a",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 106
  },
  "hsl": {
    "h": 281.25,
    "s": 60.606,
    "l": 25.882
  },
  "oklch": {
    "l": 0.34528,
    "c": 0.13617,
    "h": 313
  },
  "luminance": 0.03529
}

Semantic roles & 50–950 ramp

primary
#511A6A
secondary
#5E9F40
accent
#E44476
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #511A6A

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

Preview Lab → · Contrast checker → · Palette generator →

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