#511B51#511B51

#511B51 is a dark, moderate purple. Relative luminance 0.031; OKLCH L 32.9% C 0.109 H 327.7°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#511B51
RGBrgb(81, 27, 81)
HSLhsl(300, 50%, 21%)
HSVhsv(300, 67%, 32%)
CMYKcmyk(0%, 66.7%, 0%, 68.2%)
CIE-LABlab(20.55, 33.13, -21.13)
CIE-LCHlch(20.55, 39.30, 327.47°)
OKLaboklab(32.91% 0.0923 -0.0583)
OKLCHoklch(32.91% 0.109 327.7)
XYZxyz(5.2704, 3.1276, 8.1091)
Luminance0.0313 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B51 #1B511B
analogous
#361B51 #511B51 #511B36
triadic
#511B51 #51511B #1B5151
tetradic
#511B51 #51361B #1B511B #1B3651
square
#511B51 #51361B #1B511B #1B3651
split-complementary
#511B51 #36511B #1B5136
monochromatic
#170817 #230C23 #511B51 #7F2A7F #AD3AAD

Accessibility & contrast

On white

12.92
#511B51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#511B51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B51
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B51#FFFFFF#000000##FFFFFF
##511B511.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142D53
Deuteranopia (green-blind)
#283450
Tritanopia (blue-blind)
#542233
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #511b51;
/* rgb */ color: rgb(81, 27, 81);
/* oklch */ color: oklch(32.9% 0.109 327.7);
Tailwind
colors: {
  custom: {
    50: '#845c82',
    500: '#511b51',
    950: '#000000',
  },
}
SCSS
$custom: #511b51;
$custom-light: #845c82;
$custom-dark: #000000;
JSON
{
  "hex": "#511b51",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 81
  },
  "hsl": {
    "h": 300,
    "s": 50,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32913,
    "c": 0.10916,
    "h": 327.7
  },
  "luminance": 0.03127
}

Semantic roles & 50–950 ramp

primary
#511B51
secondary
#418741
accent
#DA4E4E
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #511B51

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

Preview Lab → · Contrast checker → · Palette generator →

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