#511656#511656

#511656 is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.6% C 0.121 H 324.6°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#511656
RGBrgb(81, 22, 86)
HSLhsl(295, 59%, 21%)
HSVhsv(295, 74%, 34%)
CMYKcmyk(5.8%, 74.4%, 0%, 66.3%)
CIE-LABlab(20.03, 36.46, -25.32)
CIE-LCHlch(20.03, 44.39, 325.21°)
OKLaboklab(32.64% 0.099 -0.0704)
OKLCHoklch(32.64% 0.121 324.6)
XYZxyz(5.3598, 2.9954, 9.0981)
Luminance0.0300 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511656 #1B5616
analogous
#311656 #511656 #56163B
triadic
#511656 #565116 #165651
tetradic
#511656 #563116 #1B5616 #163B56
square
#511656 #563116 #1B5616 #163B56
split-complementary
#511656 #3B5616 #165631
monochromatic
#170618 #230A25 #511656 #7F2287 #AD2FB7

Accessibility & contrast

On white

13.13
#511656 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#511656 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511656
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511656#FFFFFF#000000##FFFFFF
##5116561.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062C58
Deuteranopia (green-blind)
#223354
Tritanopia (blue-blind)
#532034
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #511656;
/* rgb */ color: rgb(81, 22, 86);
/* oklch */ color: oklch(32.6% 0.121 324.6);
Tailwind
colors: {
  custom: {
    50: '#845986',
    500: '#511656',
    950: '#000000',
  },
}
SCSS
$custom: #511656;
$custom-light: #845986;
$custom-dark: #000000;
JSON
{
  "hex": "#511656",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 86
  },
  "hsl": {
    "h": 295.313,
    "s": 59.259,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32635,
    "c": 0.12146,
    "h": 324.6
  },
  "luminance": 0.02995
}

Semantic roles & 50–950 ramp

primary
#511656
secondary
#418D3A
accent
#E24552
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511656

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

Preview Lab → · Contrast checker → · Palette generator →

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