#511E4E#511E4E

#511E4E is a dark, moderate purple. Relative luminance 0.032; OKLCH L 33.1% C 0.101 H 329.9°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#511E4E
RGBrgb(81, 30, 78)
HSLhsl(304, 46%, 22%)
HSVhsv(304, 63%, 32%)
CMYKcmyk(0%, 63%, 3.7%, 68.2%)
CIE-LABlab(20.94, 31.00, -18.50)
CIE-LCHlch(20.94, 36.10, 329.18°)
OKLaboklab(33.14% 0.0876 -0.0508)
OKLCHoklch(33.14% 0.101 329.9)
XYZxyz(5.2327, 3.2283, 7.5538)
Luminance0.0323 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E4E #1E5121
analogous
#3B1E51 #511E4E #511E35
triadic
#511E4E #4E511E #1E4E51
tetradic
#511E4E #513B1E #1E5121 #1E3551
square
#511E4E #513B1E #1E5121 #1E3551
split-complementary
#511E4E #35511E #1E513B
monochromatic
#160816 #240D23 #511E4E #7E2F79 #AA3FA4

Accessibility & contrast

On white

12.76
#511E4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511E4E
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E4E#FFFFFF#000000##FFFFFF
##511E4E1.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2E50
Deuteranopia (green-blind)
#2B354D
Tritanopia (blue-blind)
#542333
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #511e4e;
/* rgb */ color: rgb(81, 30, 78);
/* oklch */ color: oklch(33.1% 0.101 329.9);
Tailwind
colors: {
  custom: {
    50: '#845d7f',
    500: '#511e4e',
    950: '#000000',
  },
}
SCSS
$custom: #511e4e;
$custom-light: #845d7f;
$custom-dark: #000000;
JSON
{
  "hex": "#511e4e",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 78
  },
  "hsl": {
    "h": 303.529,
    "s": 45.946,
    "l": 21.765
  },
  "oklch": {
    "l": 0.33141,
    "c": 0.10123,
    "h": 329.9
  },
  "luminance": 0.03228
}

Semantic roles & 50–950 ramp

primary
#511E4E
secondary
#458649
accent
#D65A52
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #511E4E

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

Preview Lab → · Contrast checker → · Palette generator →

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