#511560#511560

#511560 is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.2% C 0.132 H 318.7°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#511560
RGBrgb(81, 21, 96)
HSLhsl(288, 64%, 23%)
HSVhsv(288, 78%, 38%)
CMYKcmyk(15.6%, 78.1%, 0%, 62.4%)
CIE-LABlab(20.56, 38.95, -31.13)
CIE-LCHlch(20.56, 49.87, 321.37°)
OKLaboklab(33.24% 0.0995 -0.0874)
OKLCHoklch(33.24% 0.132 318.7)
XYZxyz(5.7725, 3.1305, 11.3642)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511560 #246015
analogous
#2B1560 #511560 #601549
triadic
#511560 #605115 #156051
tetradic
#511560 #602B15 #246015 #154960
square
#511560 #602B15 #246015 #154960
split-complementary
#511560 #496015 #15602B
monochromatic
#150519 #270A2E #511560 #7B2092 #A62BC4

Accessibility & contrast

On white

12.92
#511560 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511560
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511560#FFFFFF#000000##FFFFFF
##5115601.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E62
Deuteranopia (green-blind)
#19335E
Tritanopia (blue-blind)
#512439
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #511560;
/* rgb */ color: rgb(81, 21, 96);
/* oklch */ color: oklch(33.2% 0.132 318.7);
Tailwind
colors: {
  custom: {
    50: '#85598e',
    500: '#511560',
    950: '#000000',
  },
}
SCSS
$custom: #511560;
$custom-light: #85598e;
$custom-dark: #000000;
JSON
{
  "hex": "#511560",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 96
  },
  "hsl": {
    "h": 288,
    "s": 64.103,
    "l": 22.941
  },
  "oklch": {
    "l": 0.33235,
    "c": 0.13243,
    "h": 318.7
  },
  "luminance": 0.0313
}

Semantic roles & 50–950 ramp

primary
#511560
secondary
#4C973A
accent
#E74162
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511560

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

Preview Lab → · Contrast checker → · Palette generator →

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