#511A4B#511A4B

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

Color values

HEX#511A4B
RGBrgb(81, 26, 75)
HSLhsl(307, 51%, 21%)
HSVhsv(307, 68%, 32%)
CMYKcmyk(0%, 67.9%, 7.4%, 68.2%)
CIE-LABlab(20.03, 32.45, -17.88)
CIE-LCHlch(20.03, 37.05, 331.15°)
OKLaboklab(32.42% 0.093 -0.0489)
OKLCHoklch(32.42% 0.105 332.2)
XYZxyz(5.0327, 2.9965, 6.9686)
Luminance0.0300 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A4B #1A5120
analogous
#3B1A51 #511A4B #511A2F
triadic
#511A4B #4B511A #1A4B51
tetradic
#511A4B #513B1A #1A5120 #1A2F51
square
#511A4B #513B1A #1A5120 #1A2F51
split-complementary
#511A4B #2F511A #1A513B
monochromatic
#170715 #230B20 #511A4B #7F2976 #AE38A1

Accessibility & contrast

On white

13.13
#511A4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511A4B
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A4B#FFFFFF#000000##FFFFFF
##511A4B1.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182B4C
Deuteranopia (green-blind)
#2A334A
Tritanopia (blue-blind)
#551F2F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #511a4b;
/* rgb */ color: rgb(81, 26, 75);
/* oklch */ color: oklch(32.4% 0.105 332.2);
Tailwind
colors: {
  custom: {
    50: '#845b7d',
    500: '#511a4b',
    950: '#000000',
  },
}
SCSS
$custom: #511a4b;
$custom-light: #845b7d;
$custom-dark: #000000;
JSON
{
  "hex": "#511a4b",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 75
  },
  "hsl": {
    "h": 306.545,
    "s": 51.402,
    "l": 20.98
  },
  "oklch": {
    "l": 0.32425,
    "c": 0.1051,
    "h": 332.2
  },
  "luminance": 0.02996
}

Semantic roles & 50–950 ramp

primary
#511A4B
secondary
#408747
accent
#DB5C4D
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B0409
muted
#7C797B

Preview Lab

Preview with #511A4B

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

Preview Lab → · Contrast checker → · Palette generator →

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