#511566#511566

#511566 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.7% C 0.138 H 315.5°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#511566
RGBrgb(81, 21, 102)
HSLhsl(284, 66%, 24%)
HSVhsv(284, 79%, 40%)
CMYKcmyk(20.6%, 79.4%, 0%, 60%)
CIE-LABlab(21.00, 40.26, -34.37)
CIE-LCHlch(21.00, 52.93, 319.51°)
OKLaboklab(33.69% 0.0987 -0.0969)
OKLCHoklch(33.69% 0.138 315.5)
XYZxyz(6.0594, 3.2452, 12.8750)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511566 #2A6615
analogous
#281566 #511566 #661553
triadic
#511566 #665115 #156651
tetradic
#511566 #662815 #2A6615 #155366
square
#511566 #662815 #2A6615 #155366
split-complementary
#511566 #536615 #156628
monochromatic
#140519 #290B33 #511566 #791F99 #A22ACC

Accessibility & contrast

On white

12.73
#511566 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#511566 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511566
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511566#FFFFFF#000000##FFFFFF
##5115661.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F68
Deuteranopia (green-blind)
#133464
Tritanopia (blue-blind)
#4F273D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #511566;
/* rgb */ color: rgb(81, 21, 102);
/* oklch */ color: oklch(33.7% 0.138 315.5);
Tailwind
colors: {
  custom: {
    50: '#855a92',
    500: '#511566',
    950: '#000000',
  },
}
SCSS
$custom: #511566;
$custom-light: #855a92;
$custom-dark: #000000;
JSON
{
  "hex": "#511566",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 102
  },
  "hsl": {
    "h": 284.444,
    "s": 65.854,
    "l": 24.118
  },
  "oklch": {
    "l": 0.33688,
    "c": 0.13833,
    "h": 315.5
  },
  "luminance": 0.03245
}

Semantic roles & 50–950 ramp

primary
#511566
secondary
#549D3A
accent
#E93F6B
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #511566

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

Preview Lab → · Contrast checker → · Palette generator →

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