#511B4F#511B4F

#511B4F is a dark, moderate purple. Relative luminance 0.031; OKLCH L 32.8% C 0.107 H 329.2°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#511B4F
RGBrgb(81, 27, 79)
HSLhsl(302, 50%, 21%)
HSVhsv(302, 67%, 32%)
CMYKcmyk(0%, 66.7%, 2.5%, 68.2%)
CIE-LABlab(20.43, 32.73, -19.96)
CIE-LCHlch(20.43, 38.34, 328.62°)
OKLaboklab(32.79% 0.0921 -0.0549)
OKLCHoklch(32.79% 0.107 329.2)
XYZxyz(5.1965, 3.0981, 7.7199)
Luminance0.0310 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B4F #1B511D
analogous
#381B51 #511B4F #511B34
triadic
#511B4F #4F511B #1B4F51
tetradic
#511B4F #51381B #1B511D #1B3451
square
#511B4F #51381B #1B511D #1B3451
split-complementary
#511B4F #34511B #1B5138
monochromatic
#170816 #230C22 #511B4F #7F2A7C #AD3AA9

Accessibility & contrast

On white

12.97
#511B4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#511B4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B4F
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B4F#FFFFFF#000000##FFFFFF
##511B4F1.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162D51
Deuteranopia (green-blind)
#29344E
Tritanopia (blue-blind)
#542132
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #511b4f;
/* rgb */ color: rgb(81, 27, 79);
/* oklch */ color: oklch(32.8% 0.107 329.2);
Tailwind
colors: {
  custom: {
    50: '#845c80',
    500: '#511b4f',
    950: '#000000',
  },
}
SCSS
$custom: #511b4f;
$custom-light: #845c80;
$custom-dark: #000000;
JSON
{
  "hex": "#511b4f",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 79
  },
  "hsl": {
    "h": 302.222,
    "s": 50,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32791,
    "c": 0.10723,
    "h": 329.2
  },
  "luminance": 0.03098
}

Semantic roles & 50–950 ramp

primary
#511B4F
secondary
#418744
accent
#DA534E
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #511B4F

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

Preview Lab → · Contrast checker → · Palette generator →

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