#511B49#511B49

#511B49 is a dark, moderate purple. Relative luminance 0.030; OKLCH L 32.4% C 0.102 H 333.9°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#511B49
RGBrgb(81, 27, 73)
HSLhsl(309, 50%, 21%)
HSVhsv(309, 67%, 32%)
CMYKcmyk(0%, 66.7%, 9.9%, 68.2%)
CIE-LABlab(20.10, 31.58, -16.40)
CIE-LCHlch(20.10, 35.59, 332.55°)
OKLaboklab(32.44% 0.0913 -0.0447)
OKLCHoklch(32.44% 0.102 333.9)
XYZxyz(4.9879, 3.0146, 6.6212)
Luminance0.0301 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B49 #1B5123
analogous
#3E1B51 #511B49 #511B2E
triadic
#511B49 #49511B #1B4951
tetradic
#511B49 #513E1B #1B5123 #1B2E51
square
#511B49 #513E1B #1B5123 #1B2E51
split-complementary
#511B49 #2E511B #1B513E
monochromatic
#170815 #230C20 #511B49 #7F2A72 #AD3A9C

Accessibility & contrast

On white

13.10
#511B49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#511B49 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B49
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B49#FFFFFF#000000##FFFFFF
##511B491.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511b49;
/* rgb */ color: rgb(81, 27, 73);
/* oklch */ color: oklch(32.4% 0.102 333.9);
Tailwind
colors: {
  custom: {
    50: '#845b7c',
    500: '#511b49',
    950: '#000000',
  },
}
SCSS
$custom: #511b49;
$custom-light: #845b7c;
$custom-dark: #000000;
JSON
{
  "hex": "#511b49",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 73
  },
  "hsl": {
    "h": 308.889,
    "s": 50,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32443,
    "c": 0.10163,
    "h": 333.9
  },
  "luminance": 0.03014
}

Semantic roles & 50–950 ramp

primary
#511B49
secondary
#41874B
accent
#DA634E
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B0409
muted
#7C797B

Preview Lab

Preview with #511B49

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

Preview Lab → · Contrast checker → · Palette generator →

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