#511B4A#511B4A

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

Color values

HEX#511B4A
RGBrgb(81, 27, 74)
HSLhsl(308, 50%, 21%)
HSVhsv(308, 67%, 32%)
CMYKcmyk(0%, 66.7%, 8.6%, 68.2%)
CIE-LABlab(20.16, 31.77, -17.00)
CIE-LCHlch(20.16, 36.03, 331.85°)
OKLaboklab(32.5% 0.0914 -0.0464)
OKLCHoklch(32.5% 0.103 333.1)
XYZxyz(5.0213, 3.0280, 6.7972)
Luminance0.0303 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B4A #1B5122
analogous
#3D1B51 #511B4A #511B2F
triadic
#511B4A #4A511B #1B4A51
tetradic
#511B4A #513D1B #1B5122 #1B2F51
square
#511B4A #513D1B #1B5122 #1B2F51
split-complementary
#511B4A #2F511B #1B513D
monochromatic
#170815 #230C20 #511B4A #7F2A74 #AD3A9E

Accessibility & contrast

On white

13.08
#511B4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511B4A
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B4A#FFFFFF#000000##FFFFFF
##511B4A1.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2C4B
Deuteranopia (green-blind)
#2B3349
Tritanopia (blue-blind)
#551F2F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #511b4a;
/* rgb */ color: rgb(81, 27, 74);
/* oklch */ color: oklch(32.5% 0.103 333.1);
Tailwind
colors: {
  custom: {
    50: '#845b7c',
    500: '#511b4a',
    950: '#000000',
  },
}
SCSS
$custom: #511b4a;
$custom-light: #845b7c;
$custom-dark: #000000;
JSON
{
  "hex": "#511b4a",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 74
  },
  "hsl": {
    "h": 307.778,
    "s": 50,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32499,
    "c": 0.10255,
    "h": 333.1
  },
  "luminance": 0.03028
}

Semantic roles & 50–950 ramp

primary
#511B4A
secondary
#41874A
accent
#DA604E
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B0409
muted
#7C797B

Preview Lab

Preview with #511B4A

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

Preview Lab → · Contrast checker → · Palette generator →

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