#511B4C#511B4C

#511B4C is a dark, moderate purple. Relative luminance 0.031; OKLCH L 32.6% C 0.104 H 331.5°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#511B4C
RGBrgb(81, 27, 76)
HSLhsl(306, 50%, 21%)
HSVhsv(306, 67%, 32%)
CMYKcmyk(0%, 66.7%, 6.2%, 68.2%)
CIE-LABlab(20.26, 32.15, -18.19)
CIE-LCHlch(20.26, 36.94, 330.50°)
OKLaboklab(32.61% 0.0917 -0.0498)
OKLCHoklch(32.61% 0.104 331.5)
XYZxyz(5.0898, 3.0554, 7.1577)
Luminance0.0306 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B4C #1B5120
analogous
#3B1B51 #511B4C #511B31
triadic
#511B4C #4C511B #1B4C51
tetradic
#511B4C #513B1B #1B5120 #1B3151
square
#511B4C #513B1B #1B5120 #1B3151
split-complementary
#511B4C #31511B #1B513B
monochromatic
#170816 #230C21 #511B4C #7F2A77 #AD3AA2

Accessibility & contrast

On white

13.04
#511B4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511B4C
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B4C#FFFFFF#000000##FFFFFF
##511B4C1.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182C4D
Deuteranopia (green-blind)
#2A344B
Tritanopia (blue-blind)
#542030
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #511b4c;
/* rgb */ color: rgb(81, 27, 76);
/* oklch */ color: oklch(32.6% 0.104 331.5);
Tailwind
colors: {
  custom: {
    50: '#845b7e',
    500: '#511b4c',
    950: '#000000',
  },
}
SCSS
$custom: #511b4c;
$custom-light: #845b7e;
$custom-dark: #000000;
JSON
{
  "hex": "#511b4c",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 76
  },
  "hsl": {
    "h": 305.556,
    "s": 50,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32614,
    "c": 0.10439,
    "h": 331.5
  },
  "luminance": 0.03055
}

Semantic roles & 50–950 ramp

primary
#511B4C
secondary
#418747
accent
#DA5B4E
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #511B4C

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

Preview Lab → · Contrast checker → · Palette generator →

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