#511660#511660

#511660 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.3% C 0.131 H 318.6°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#511660
RGBrgb(81, 22, 96)
HSLhsl(288, 63%, 23%)
HSVhsv(288, 77%, 38%)
CMYKcmyk(15.6%, 77.1%, 0%, 62.4%)
CIE-LABlab(20.70, 38.54, -30.90)
CIE-LCHlch(20.70, 49.40, 321.28°)
OKLaboklab(33.34% 0.0984 -0.0867)
OKLCHoklch(33.34% 0.131 318.6)
XYZxyz(5.7913, 3.1679, 11.3705)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511660 #256016
analogous
#2C1660 #511660 #60164A
triadic
#511660 #605116 #166051
tetradic
#511660 #602C16 #256016 #164A60
square
#511660 #602C16 #256016 #164A60
split-complementary
#511660 #4A6016 #16602C
monochromatic
#150619 #270B2E #511660 #7B2192 #A52DC4

Accessibility & contrast

On white

12.86
#511660 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#511660 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511660
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511660#FFFFFF#000000##FFFFFF
##5116601.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E62
Deuteranopia (green-blind)
#1A345E
Tritanopia (blue-blind)
#512539
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #511660;
/* rgb */ color: rgb(81, 22, 96);
/* oklch */ color: oklch(33.3% 0.131 318.6);
Tailwind
colors: {
  custom: {
    50: '#855a8e',
    500: '#511660',
    950: '#000000',
  },
}
SCSS
$custom: #511660;
$custom-light: #855a8e;
$custom-dark: #000000;
JSON
{
  "hex": "#511660",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 96
  },
  "hsl": {
    "h": 287.838,
    "s": 62.712,
    "l": 23.137
  },
  "oklch": {
    "l": 0.33338,
    "c": 0.13118,
    "h": 318.6
  },
  "luminance": 0.03168
}

Semantic roles & 50–950 ramp

primary
#511660
secondary
#4E973B
accent
#E64263
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511660

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

Preview Lab → · Contrast checker → · Palette generator →

#511660 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva