#511B4B#511B4B

#511B4B is a dark, moderate purple. Relative luminance 0.030; OKLCH L 32.6% C 0.103 H 332.3°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#511B4B
RGBrgb(81, 27, 75)
HSLhsl(307, 50%, 21%)
HSVhsv(307, 67%, 32%)
CMYKcmyk(0%, 66.7%, 7.4%, 68.2%)
CIE-LABlab(20.21, 31.96, -17.60)
CIE-LCHlch(20.21, 36.48, 331.16°)
OKLaboklab(32.56% 0.0916 -0.0481)
OKLCHoklch(32.56% 0.103 332.3)
XYZxyz(5.0553, 3.0416, 6.9761)
Luminance0.0304 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B4B #1B5121
analogous
#3C1B51 #511B4B #511B30
triadic
#511B4B #4B511B #1B4B51
tetradic
#511B4B #513C1B #1B5121 #1B3051
square
#511B4B #513C1B #1B5121 #1B3051
split-complementary
#511B4B #30511B #1B513C
monochromatic
#170815 #230C20 #511B4B #7F2A75 #AD3AA0

Accessibility & contrast

On white

13.06
#511B4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511B4B
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B4B#FFFFFF#000000##FFFFFF
##511B4B1.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192C4C
Deuteranopia (green-blind)
#2A344A
Tritanopia (blue-blind)
#552030
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #511b4b;
/* rgb */ color: rgb(81, 27, 75);
/* oklch */ color: oklch(32.6% 0.103 332.3);
Tailwind
colors: {
  custom: {
    50: '#845b7d',
    500: '#511b4b',
    950: '#000000',
  },
}
SCSS
$custom: #511b4b;
$custom-light: #845b7d;
$custom-dark: #000000;
JSON
{
  "hex": "#511b4b",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 75
  },
  "hsl": {
    "h": 306.667,
    "s": 50,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32556,
    "c": 0.10347,
    "h": 332.3
  },
  "luminance": 0.03041
}

Semantic roles & 50–950 ramp

primary
#511B4B
secondary
#418749
accent
#DA5E4E
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B0409
muted
#7C797B

Preview Lab

Preview with #511B4B

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

Preview Lab → · Contrast checker → · Palette generator →

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