#511156#511156

#511156 is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.1% C 0.128 H 324.8°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#511156
RGBrgb(81, 17, 86)
HSLhsl(296, 67%, 20%)
HSVhsv(296, 80%, 34%)
CMYKcmyk(5.8%, 80.2%, 0%, 66.3%)
CIE-LABlab(19.32, 38.47, -26.45)
CIE-LCHlch(19.32, 46.68, 325.49°)
OKLaboklab(32.13% 0.1045 -0.0737)
OKLCHoklch(32.13% 0.128 324.8)
XYZxyz(5.2734, 2.8225, 9.0693)
Luminance0.0282 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511156 #165611
analogous
#2E1156 #511156 #561138
triadic
#511156 #565111 #115651
tetradic
#511156 #562E11 #165611 #113856
square
#511156 #562E11 #165611 #113856
split-complementary
#511156 #385611 #11562E
monochromatic
#18051A #210723 #511156 #811B89 #B125BC

Accessibility & contrast

On white

13.42
#511156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#511156 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511156
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511156#FFFFFF#000000##FFFFFF
##5111561.0013.421.5613.42
#FFFFFF13.421.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A58
Deuteranopia (green-blind)
#1F3154
Tritanopia (blue-blind)
#531D33
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #511156;
/* rgb */ color: rgb(81, 17, 86);
/* oklch */ color: oklch(32.1% 0.128 324.8);
Tailwind
colors: {
  custom: {
    50: '#855786',
    500: '#511156',
    950: '#000000',
  },
}
SCSS
$custom: #511156;
$custom-light: #855786;
$custom-dark: #000000;
JSON
{
  "hex": "#511156",
  "rgb": {
    "r": 81,
    "g": 17,
    "b": 86
  },
  "hsl": {
    "h": 295.652,
    "s": 66.99,
    "l": 20.196
  },
  "oklch": {
    "l": 0.32129,
    "c": 0.12786,
    "h": 324.8
  },
  "luminance": 0.02822
}

Semantic roles & 50–950 ramp

primary
#511156
secondary
#3A8F34
accent
#EA3E4A
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #511156

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

Preview Lab → · Contrast checker → · Palette generator →

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