#511568#511568

#511568 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.8% C 0.140 H 314.5°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#511568
RGBrgb(81, 21, 104)
HSLhsl(283, 66%, 25%)
HSVhsv(283, 80%, 41%)
CMYKcmyk(22.1%, 79.8%, 0%, 59.2%)
CIE-LABlab(21.15, 40.70, -35.44)
CIE-LCHlch(21.15, 53.96, 318.95°)
OKLaboklab(33.84% 0.0984 -0.1)
OKLCHoklch(33.84% 0.14 314.5)
XYZxyz(6.1598, 3.2854, 13.4037)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511568 #2C6815
analogous
#271568 #511568 #681556
triadic
#511568 #685115 #156851
tetradic
#511568 #682715 #2C6815 #155668
square
#511568 #682715 #2C6815 #155668
split-complementary
#511568 #566815 #156827
monochromatic
#140519 #290B35 #511568 #791F9B #A02ACE

Accessibility & contrast

On white

12.67
#511568 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#511568 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511568
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511568#FFFFFF#000000##FFFFFF
##5115681.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306A
Deuteranopia (green-blind)
#103466
Tritanopia (blue-blind)
#4F283E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511568;
/* rgb */ color: rgb(81, 21, 104);
/* oklch */ color: oklch(33.8% 0.140 314.5);
Tailwind
colors: {
  custom: {
    50: '#855a94',
    500: '#511568',
    950: '#000000',
  },
}
SCSS
$custom: #511568;
$custom-light: #855a94;
$custom-dark: #000000;
JSON
{
  "hex": "#511568",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 104
  },
  "hsl": {
    "h": 283.373,
    "s": 66.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.33844,
    "c": 0.14032,
    "h": 314.5
  },
  "luminance": 0.03285
}

Semantic roles & 50–950 ramp

primary
#511568
secondary
#569F3A
accent
#E93E6E
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #511568

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

Preview Lab → · Contrast checker → · Palette generator →

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