#511B55#511B55

#511B55 is a dark, moderate purple. Relative luminance 0.032; OKLCH L 33.2% C 0.113 H 324.9°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#511B55
RGBrgb(81, 27, 85)
HSLhsl(296, 52%, 22%)
HSVhsv(296, 68%, 33%)
CMYKcmyk(4.7%, 68.2%, 0%, 66.7%)
CIE-LABlab(20.79, 33.94, -23.44)
CIE-LCHlch(20.79, 41.25, 325.37°)
OKLaboklab(33.16% 0.0925 -0.065)
OKLCHoklch(33.16% 0.113 324.9)
XYZxyz(5.4248, 3.1894, 8.9224)
Luminance0.0319 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B55 #1F551B
analogous
#341B55 #511B55 #551B3C
triadic
#511B55 #55511B #1B5551
tetradic
#511B55 #55341B #1F551B #1B3C55
square
#511B55 #55341B #1F551B #1B3C55
split-complementary
#511B55 #3C551B #1B5534
monochromatic
#160717 #250C27 #511B55 #7D2A83 #AA39B2

Accessibility & contrast

On white

12.82
#511B55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#511B55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B55
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B55#FFFFFF#000000##FFFFFF
##511B551.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112E57
Deuteranopia (green-blind)
#263453
Tritanopia (blue-blind)
#532335
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #511b55;
/* rgb */ color: rgb(81, 27, 85);
/* oklch */ color: oklch(33.2% 0.113 324.9);
Tailwind
colors: {
  custom: {
    50: '#845c85',
    500: '#511b55',
    950: '#000000',
  },
}
SCSS
$custom: #511b55;
$custom-light: #845c85;
$custom-dark: #000000;
JSON
{
  "hex": "#511b55",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 85
  },
  "hsl": {
    "h": 295.862,
    "s": 51.786,
    "l": 21.961
  },
  "oklch": {
    "l": 0.33164,
    "c": 0.11311,
    "h": 324.9
  },
  "luminance": 0.03189
}

Semantic roles & 50–950 ramp

primary
#511B55
secondary
#468B41
accent
#DB4D56
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511B55

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

Preview Lab → · Contrast checker → · Palette generator →

#511B55 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva