#511A4A#511A4A

#511A4A is a dark, moderate purple. Relative luminance 0.030; OKLCH L 32.4% C 0.104 H 333.0°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#511A4A
RGBrgb(81, 26, 74)
HSLhsl(308, 51%, 21%)
HSVhsv(308, 68%, 32%)
CMYKcmyk(0%, 67.9%, 8.6%, 68.2%)
CIE-LABlab(19.98, 32.27, -17.28)
CIE-LCHlch(19.98, 36.60, 331.82°)
OKLaboklab(32.37% 0.0929 -0.0472)
OKLCHoklch(32.37% 0.104 333)
XYZxyz(4.9988, 2.9829, 6.7897)
Luminance0.0298 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A4A #1A5121
analogous
#3C1A51 #511A4A #511A2E
triadic
#511A4A #4A511A #1A4A51
tetradic
#511A4A #513C1A #1A5121 #1A2E51
square
#511A4A #513C1A #1A5121 #1A2E51
split-complementary
#511A4A #2E511A #1A513C
monochromatic
#170715 #230B20 #511A4A #7F2974 #AE389F

Accessibility & contrast

On white

13.15
#511A4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#511A4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511A4A
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A4A#FFFFFF#000000##FFFFFF
##511A4A1.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182B4B
Deuteranopia (green-blind)
#2A3349
Tritanopia (blue-blind)
#551E2F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #511a4a;
/* rgb */ color: rgb(81, 26, 74);
/* oklch */ color: oklch(32.4% 0.104 333.0);
Tailwind
colors: {
  custom: {
    50: '#845b7c',
    500: '#511a4a',
    950: '#000000',
  },
}
SCSS
$custom: #511a4a;
$custom-light: #845b7c;
$custom-dark: #000000;
JSON
{
  "hex": "#511a4a",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 74
  },
  "hsl": {
    "h": 307.636,
    "s": 51.402,
    "l": 20.98
  },
  "oklch": {
    "l": 0.32368,
    "c": 0.10419,
    "h": 333
  },
  "luminance": 0.02983
}

Semantic roles & 50–950 ramp

primary
#511A4A
secondary
#408749
accent
#DB5F4D
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B0409
muted
#7C797B

Preview Lab

Preview with #511A4A

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

Preview Lab → · Contrast checker → · Palette generator →

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