#511A4E#511A4E

#511A4E is a dark, moderate purple. Relative luminance 0.030; OKLCH L 32.6% C 0.108 H 329.9°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#511A4E
RGBrgb(81, 26, 78)
HSLhsl(303, 51%, 21%)
HSVhsv(303, 68%, 32%)
CMYKcmyk(0%, 67.9%, 3.7%, 68.2%)
CIE-LABlab(20.20, 33.03, -19.66)
CIE-LCHlch(20.20, 38.44, 329.24°)
OKLaboklab(32.6% 0.0934 -0.054)
OKLCHoklch(32.6% 0.108 329.9)
XYZxyz(5.1378, 3.0385, 7.5221)
Luminance0.0304 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A4E #1A511D
analogous
#381A51 #511A4E #511A32
triadic
#511A4E #4E511A #1A4E51
tetradic
#511A4E #51381A #1A511D #1A3251
square
#511A4E #51381A #1A511D #1A3251
split-complementary
#511A4E #32511A #1A5138
monochromatic
#170716 #230B21 #511A4E #7F297B #AE38A7

Accessibility & contrast

On white

13.06
#511A4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#511A4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511A4E
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A4E#FFFFFF#000000##FFFFFF
##511A4E1.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162C50
Deuteranopia (green-blind)
#29334D
Tritanopia (blue-blind)
#542031
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #511a4e;
/* rgb */ color: rgb(81, 26, 78);
/* oklch */ color: oklch(32.6% 0.108 329.9);
Tailwind
colors: {
  custom: {
    50: '#845b80',
    500: '#511a4e',
    950: '#000000',
  },
}
SCSS
$custom: #511a4e;
$custom-light: #845b80;
$custom-dark: #000000;
JSON
{
  "hex": "#511a4e",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 78
  },
  "hsl": {
    "h": 303.273,
    "s": 51.402,
    "l": 20.98
  },
  "oklch": {
    "l": 0.32602,
    "c": 0.10789,
    "h": 329.9
  },
  "luminance": 0.03038
}

Semantic roles & 50–950 ramp

primary
#511A4E
secondary
#408744
accent
#DB554D
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #511A4E

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

Preview Lab → · Contrast checker → · Palette generator →

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