#511564#511564

#511564 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.5% C 0.136 H 316.6°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#511564
RGBrgb(81, 21, 100)
HSLhsl(286, 65%, 24%)
HSVhsv(286, 79%, 39%)
CMYKcmyk(19%, 79%, 0%, 60.8%)
CIE-LABlab(20.85, 39.82, -33.30)
CIE-LCHlch(20.85, 51.91, 320.09°)
OKLaboklab(33.53% 0.099 -0.0938)
OKLCHoklch(33.53% 0.136 316.6)
XYZxyz(5.9614, 3.2060, 12.3589)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511564 #286415
analogous
#291564 #511564 #64154F
triadic
#511564 #645115 #156451
tetradic
#511564 #642915 #286415 #154F64
square
#511564 #642915 #286415 #154F64
split-complementary
#511564 #4F6415 #156429
monochromatic
#140519 #280A31 #511564 #7A2097 #A32AC9

Accessibility & contrast

On white

12.80
#511564 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#511564 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511564
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511564#FFFFFF#000000##FFFFFF
##5115641.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F66
Deuteranopia (green-blind)
#153462
Tritanopia (blue-blind)
#50263B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #511564;
/* rgb */ color: rgb(81, 21, 100);
/* oklch */ color: oklch(33.5% 0.136 316.6);
Tailwind
colors: {
  custom: {
    50: '#855a91',
    500: '#511564',
    950: '#000000',
  },
}
SCSS
$custom: #511564;
$custom-light: #855a91;
$custom-dark: #000000;
JSON
{
  "hex": "#511564",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 100
  },
  "hsl": {
    "h": 285.57,
    "s": 65.289,
    "l": 23.725
  },
  "oklch": {
    "l": 0.33535,
    "c": 0.13636,
    "h": 316.6
  },
  "luminance": 0.03206
}

Semantic roles & 50–950 ramp

primary
#511564
secondary
#519B3A
accent
#E84068
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0B040D
muted
#7C797D

Preview Lab

Preview with #511564

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

Preview Lab → · Contrast checker → · Palette generator →

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