#511E55#511E55

#511E55 is a dark, moderate purple. Relative luminance 0.033; OKLCH L 33.6% C 0.108 H 324.7°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#511E55
RGBrgb(81, 30, 85)
HSLhsl(296, 48%, 23%)
HSVhsv(296, 65%, 33%)
CMYKcmyk(4.7%, 64.7%, 0%, 66.7%)
CIE-LABlab(21.34, 32.43, -22.58)
CIE-LCHlch(21.34, 39.52, 325.16°)
OKLaboklab(33.56% 0.0884 -0.0625)
OKLCHoklch(33.56% 0.108 324.7)
XYZxyz(5.4972, 3.3341, 8.9466)
Luminance0.0333 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E55 #22551E
analogous
#351E55 #511E55 #551E3E
triadic
#511E55 #55511E #1E5551
tetradic
#511E55 #55351E #22551E #1E3E55
square
#511E55 #55351E #22551E #1E3E55
split-complementary
#511E55 #3E551E #1E5535
monochromatic
#160817 #260E28 #511E55 #7C2E82 #A73EAF

Accessibility & contrast

On white

12.60
#511E55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#511E55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511E55
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E55#FFFFFF#000000##FFFFFF
##511E551.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152F57
Deuteranopia (green-blind)
#273554
Tritanopia (blue-blind)
#532636
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511e55;
/* rgb */ color: rgb(81, 30, 85);
/* oklch */ color: oklch(33.6% 0.108 324.7);
Tailwind
colors: {
  custom: {
    50: '#845d85',
    500: '#511e55',
    950: '#000000',
  },
}
SCSS
$custom: #511e55;
$custom-light: #845d85;
$custom-dark: #000000;
JSON
{
  "hex": "#511e55",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 85
  },
  "hsl": {
    "h": 295.636,
    "s": 47.826,
    "l": 22.549
  },
  "oklch": {
    "l": 0.33562,
    "c": 0.10826,
    "h": 324.7
  },
  "luminance": 0.03334
}

Semantic roles & 50–950 ramp

primary
#511E55
secondary
#4A8A45
accent
#D7505A
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511E55

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

Preview Lab → · Contrast checker → · Palette generator →

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