#511557#511557

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

Color values

HEX#511557
RGBrgb(81, 21, 87)
HSLhsl(295, 61%, 21%)
HSVhsv(295, 76%, 34%)
CMYKcmyk(6.9%, 75.9%, 0%, 65.9%)
CIE-LABlab(19.94, 37.08, -26.13)
CIE-LCHlch(19.94, 45.37, 324.83°)
OKLaboklab(32.6% 0.1001 -0.0728)
OKLCHoklch(32.6% 0.124 324)
XYZxyz(5.3817, 2.9741, 9.3056)
Luminance0.0297 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511557 #1B5715
analogous
#301557 #511557 #57153C
triadic
#511557 #575115 #155751
tetradic
#511557 #573015 #1B5715 #153C57
square
#511557 #573015 #1B5715 #153C57
split-complementary
#511557 #3C5715 #155730
monochromatic
#170619 #230926 #511557 #7F2188 #AD2DBA

Accessibility & contrast

On white

13.17
#511557 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511557
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511557#FFFFFF#000000##FFFFFF
##5115571.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032C59
Deuteranopia (green-blind)
#213355
Tritanopia (blue-blind)
#532034
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #511557;
/* rgb */ color: rgb(81, 21, 87);
/* oklch */ color: oklch(32.6% 0.124 324.0);
Tailwind
colors: {
  custom: {
    50: '#845987',
    500: '#511557',
    950: '#000000',
  },
}
SCSS
$custom: #511557;
$custom-light: #845987;
$custom-dark: #000000;
JSON
{
  "hex": "#511557",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 87
  },
  "hsl": {
    "h": 294.545,
    "s": 61.111,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32595,
    "c": 0.12376,
    "h": 324
  },
  "luminance": 0.02974
}

Semantic roles & 50–950 ramp

primary
#511557
secondary
#418F39
accent
#E44452
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511557

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

Preview Lab → · Contrast checker → · Palette generator →

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