#511556#511556

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

Color values

HEX#511556
RGBrgb(81, 21, 86)
HSLhsl(295, 61%, 21%)
HSVhsv(295, 76%, 34%)
CMYKcmyk(5.8%, 75.6%, 0%, 66.3%)
CIE-LABlab(19.87, 36.88, -25.56)
CIE-LCHlch(19.87, 44.88, 325.27°)
OKLaboklab(32.53% 0.1001 -0.0711)
OKLCHoklch(32.53% 0.123 324.6)
XYZxyz(5.3411, 2.9579, 9.0919)
Luminance0.0296 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511556 #1A5615
analogous
#301556 #511556 #56153A
triadic
#511556 #565115 #155651
tetradic
#511556 #563015 #1A5615 #153A56
square
#511556 #563015 #1A5615 #153A56
split-complementary
#511556 #3A5615 #155630
monochromatic
#170619 #230925 #511556 #7F2187 #AE2DB8

Accessibility & contrast

On white

13.19
#511556 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#511556 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511556
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511556#FFFFFF#000000##FFFFFF
##5115561.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042B58
Deuteranopia (green-blind)
#213354
Tritanopia (blue-blind)
#532034
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #511556;
/* rgb */ color: rgb(81, 21, 86);
/* oklch */ color: oklch(32.5% 0.123 324.6);
Tailwind
colors: {
  custom: {
    50: '#845986',
    500: '#511556',
    950: '#000000',
  },
}
SCSS
$custom: #511556;
$custom-light: #845986;
$custom-dark: #000000;
JSON
{
  "hex": "#511556",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 86
  },
  "hsl": {
    "h": 295.385,
    "s": 60.748,
    "l": 20.98
  },
  "oklch": {
    "l": 0.32527,
    "c": 0.12282,
    "h": 324.6
  },
  "luminance": 0.02958
}

Semantic roles & 50–950 ramp

primary
#511556
secondary
#408E39
accent
#E44450
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511556

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

Preview Lab → · Contrast checker → · Palette generator →

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