#511E51#511E51

#511E51 is a dark, moderate purple. Relative luminance 0.033; OKLCH L 33.3% C 0.104 H 327.6°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#511E51
RGBrgb(81, 30, 81)
HSLhsl(300, 46%, 22%)
HSVhsv(300, 63%, 32%)
CMYKcmyk(0%, 63%, 0%, 68.2%)
CIE-LABlab(21.10, 31.61, -20.26)
CIE-LCHlch(21.10, 37.54, 327.34°)
OKLaboklab(33.32% 0.088 -0.0558)
OKLCHoklch(33.32% 0.104 327.6)
XYZxyz(5.3427, 3.2723, 8.1332)
Luminance0.0327 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E51 #1E511E
analogous
#381E51 #511E51 #511E38
triadic
#511E51 #51511E #1E5151
tetradic
#511E51 #51381E #1E511E #1E3851
square
#511E51 #51381E #1E511E #1E3851
split-complementary
#511E51 #38511E #1E5138
monochromatic
#160816 #240D24 #511E51 #7E2F7E #AA3FAA

Accessibility & contrast

On white

12.69
#511E51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#511E51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511E51
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E51#FFFFFF#000000##FFFFFF
##511E511.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182E53
Deuteranopia (green-blind)
#293550
Tritanopia (blue-blind)
#542434
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511e51;
/* rgb */ color: rgb(81, 30, 81);
/* oklch */ color: oklch(33.3% 0.104 327.6);
Tailwind
colors: {
  custom: {
    50: '#845d82',
    500: '#511e51',
    950: '#000000',
  },
}
SCSS
$custom: #511e51;
$custom-light: #845d82;
$custom-dark: #000000;
JSON
{
  "hex": "#511e51",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 81
  },
  "hsl": {
    "h": 300,
    "s": 45.946,
    "l": 21.765
  },
  "oklch": {
    "l": 0.33317,
    "c": 0.10419,
    "h": 327.6
  },
  "luminance": 0.03272
}

Semantic roles & 50–950 ramp

primary
#511E51
secondary
#458645
accent
#D65252
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #511E51

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

Preview Lab → · Contrast checker → · Palette generator →

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