#511256#511256

#511256 is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.2% C 0.127 H 324.8°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#511256
RGBrgb(81, 18, 86)
HSLhsl(296, 65%, 20%)
HSVhsv(296, 79%, 34%)
CMYKcmyk(5.8%, 79.1%, 0%, 66.3%)
CIE-LABlab(19.45, 38.09, -26.24)
CIE-LCHlch(19.45, 46.25, 325.44°)
OKLaboklab(32.22% 0.1035 -0.0731)
OKLCHoklch(32.22% 0.127 324.8)
XYZxyz(5.2892, 2.8542, 9.0746)
Luminance0.0285 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511256 #175612
analogous
#2F1256 #511256 #561239
triadic
#511256 #565112 #125651
tetradic
#511256 #562F12 #175612 #123956
square
#511256 #562F12 #175612 #123956
split-complementary
#511256 #395612 #12562F
monochromatic
#180519 #210723 #511256 #811D89 #B027BB

Accessibility & contrast

On white

13.37
#511256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#511256 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511256
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511256#FFFFFF#000000##FFFFFF
##5112561.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A58
Deuteranopia (green-blind)
#203254
Tritanopia (blue-blind)
#531E33
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #511256;
/* rgb */ color: rgb(81, 18, 86);
/* oklch */ color: oklch(32.2% 0.127 324.8);
Tailwind
colors: {
  custom: {
    50: '#855886',
    500: '#511256',
    950: '#000000',
  },
}
SCSS
$custom: #511256;
$custom-light: #855886;
$custom-dark: #000000;
JSON
{
  "hex": "#511256",
  "rgb": {
    "r": 81,
    "g": 18,
    "b": 86
  },
  "hsl": {
    "h": 295.588,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.32223,
    "c": 0.12667,
    "h": 324.8
  },
  "luminance": 0.02854
}

Semantic roles & 50–950 ramp

primary
#511256
secondary
#3C8F35
accent
#E83F4C
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511256

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

Preview Lab → · Contrast checker → · Palette generator →

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