#511756#511756

#511756 is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.7% C 0.120 H 324.5°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#511756
RGBrgb(81, 23, 86)
HSLhsl(295, 58%, 21%)
HSVhsv(295, 73%, 34%)
CMYKcmyk(5.8%, 73.3%, 0%, 66.3%)
CIE-LABlab(20.18, 36.02, -25.08)
CIE-LCHlch(20.18, 43.89, 325.15°)
OKLaboklab(32.75% 0.0977 -0.0697)
OKLCHoklch(32.75% 0.12 324.5)
XYZxyz(5.3793, 3.0343, 9.1046)
Luminance0.0303 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511756 #1C5617
analogous
#321756 #511756 #56173C
triadic
#511756 #565117 #175651
tetradic
#511756 #563217 #1C5617 #173C56
square
#511756 #563217 #1C5617 #173C56
split-complementary
#511756 #3C5617 #175632
monochromatic
#170618 #240A26 #511756 #7E2486 #AC31B7

Accessibility & contrast

On white

13.07
#511756 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#511756 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511756
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511756#FFFFFF#000000##FFFFFF
##5117561.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082C58
Deuteranopia (green-blind)
#223354
Tritanopia (blue-blind)
#532134
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #511756;
/* rgb */ color: rgb(81, 23, 86);
/* oklch */ color: oklch(32.7% 0.120 324.5);
Tailwind
colors: {
  custom: {
    50: '#845a86',
    500: '#511756',
    950: '#000000',
  },
}
SCSS
$custom: #511756;
$custom-light: #845a86;
$custom-dark: #000000;
JSON
{
  "hex": "#511756",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 86
  },
  "hsl": {
    "h": 295.238,
    "s": 57.798,
    "l": 21.373
  },
  "oklch": {
    "l": 0.32747,
    "c": 0.12006,
    "h": 324.5
  },
  "luminance": 0.03034
}

Semantic roles & 50–950 ramp

primary
#511756
secondary
#428D3C
accent
#E14753
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511756

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

Preview Lab → · Contrast checker → · Palette generator →

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