#511B5B#511B5B

#511B5B is a dark, moderate purple. Relative luminance 0.033; OKLCH L 33.6% C 0.119 H 321.0°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#511B5B
RGBrgb(81, 27, 91)
HSLhsl(291, 54%, 23%)
HSVhsv(291, 70%, 36%)
CMYKcmyk(11%, 70.3%, 0%, 64.3%)
CIE-LABlab(21.17, 35.21, -26.85)
CIE-LCHlch(21.17, 44.28, 322.67°)
OKLaboklab(33.56% 0.0927 -0.0749)
OKLCHoklch(33.56% 0.119 321)
XYZxyz(5.6734, 3.2888, 10.2315)
Luminance0.0329 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B5B #255B1B
analogous
#311B5B #511B5B #5B1B45
triadic
#511B5B #5B511B #1B5B51
tetradic
#511B5B #5B311B #255B1B #1B455B
square
#511B5B #5B311B #255B1B #1B455B
split-complementary
#511B5B #455B1B #1B5B31
monochromatic
#150718 #270D2C #511B5B #7B298A #A537B9

Accessibility & contrast

On white

12.67
#511B5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#511B5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B5B
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B5B#FFFFFF#000000##FFFFFF
##511B5B1.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092F5D
Deuteranopia (green-blind)
#223559
Tritanopia (blue-blind)
#522638
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511b5b;
/* rgb */ color: rgb(81, 27, 91);
/* oklch */ color: oklch(33.6% 0.119 321.0);
Tailwind
colors: {
  custom: {
    50: '#845c8a',
    500: '#511b5b',
    950: '#000000',
  },
}
SCSS
$custom: #511b5b;
$custom-light: #845c8a;
$custom-dark: #000000;
JSON
{
  "hex": "#511b5b",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 91
  },
  "hsl": {
    "h": 290.625,
    "s": 54.237,
    "l": 23.137
  },
  "oklch": {
    "l": 0.3356,
    "c": 0.11917,
    "h": 321
  },
  "luminance": 0.03289
}

Semantic roles & 50–950 ramp

primary
#511B5B
secondary
#4E9141
accent
#DE4A61
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511B5B

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

Preview Lab → · Contrast checker → · Palette generator →

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