#511B4D#511B4D

#511B4D is a dark, moderate purple. Relative luminance 0.031; OKLCH L 32.7% C 0.105 H 330.7°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#511B4D
RGBrgb(81, 27, 77)
HSLhsl(304, 50%, 21%)
HSVhsv(304, 67%, 32%)
CMYKcmyk(0%, 66.7%, 4.9%, 68.2%)
CIE-LABlab(20.32, 32.34, -18.79)
CIE-LCHlch(20.32, 37.40, 329.85°)
OKLaboklab(32.67% 0.0919 -0.0516)
OKLCHoklch(32.67% 0.105 330.7)
XYZxyz(5.1248, 3.0694, 7.3423)
Luminance0.0307 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B4D #1B511F
analogous
#3A1B51 #511B4D #511B32
triadic
#511B4D #4D511B #1B4D51
tetradic
#511B4D #513A1B #1B511F #1B3251
square
#511B4D #513A1B #1B511F #1B3251
split-complementary
#511B4D #32511B #1B513A
monochromatic
#170816 #230C21 #511B4D #7F2A79 #AD3AA4

Accessibility & contrast

On white

13.01
#511B4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511B4D
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B4D#FFFFFF#000000##FFFFFF
##511B4D1.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182C4F
Deuteranopia (green-blind)
#2A344C
Tritanopia (blue-blind)
#542031
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #511b4d;
/* rgb */ color: rgb(81, 27, 77);
/* oklch */ color: oklch(32.7% 0.105 330.7);
Tailwind
colors: {
  custom: {
    50: '#845c7f',
    500: '#511b4d',
    950: '#000000',
  },
}
SCSS
$custom: #511b4d;
$custom-light: #845c7f;
$custom-dark: #000000;
JSON
{
  "hex": "#511b4d",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 77
  },
  "hsl": {
    "h": 304.444,
    "s": 50,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32672,
    "c": 0.10533,
    "h": 330.7
  },
  "luminance": 0.03069
}

Semantic roles & 50–950 ramp

primary
#511B4D
secondary
#418746
accent
#DA594E
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #511B4D

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

Preview Lab → · Contrast checker → · Palette generator →

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