#511D6B#511D6B

#511D6B is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.0% C 0.133 H 312.1°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#511D6B
RGBrgb(81, 29, 107)
HSLhsl(280, 57%, 27%)
HSVhsv(280, 73%, 42%)
CMYKcmyk(24.3%, 72.9%, 0%, 58%)
CIE-LABlab(22.62, 37.87, -35.02)
CIE-LCHlch(22.62, 51.58, 317.23°)
OKLaboklab(34.96% 0.0892 -0.0989)
OKLCHoklch(34.96% 0.133 312.1)
XYZxyz(6.4861, 3.6898, 14.2776)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D6B #376B1D
analogous
#2A1D6B #511D6B #6B1D5E
triadic
#511D6B #6B511D #1D6B51
tetradic
#511D6B #6B2A1D #376B1D #1D5E6B
square
#511D6B #6B2A1D #376B1D #1D5E6B
split-complementary
#511D6B #5E6B1D #1D6B2A
monochromatic
#120718 #2D103B #511D6B #752A9B #9939C9

Accessibility & contrast

On white

12.08
#511D6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#511D6B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511D6B
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D6B#FFFFFF#000000##FFFFFF
##511D6B1.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336D
Deuteranopia (green-blind)
#153769
Tritanopia (blue-blind)
#4E2D41
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #511d6b;
/* rgb */ color: rgb(81, 29, 107);
/* oklch */ color: oklch(35.0% 0.133 312.1);
Tailwind
colors: {
  custom: {
    50: '#855e96',
    500: '#511d6b',
    950: '#000000',
  },
}
SCSS
$custom: #511d6b;
$custom-light: #855e96;
$custom-dark: #000000;
JSON
{
  "hex": "#511d6b",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 107
  },
  "hsl": {
    "h": 280,
    "s": 57.353,
    "l": 26.667
  },
  "oklch": {
    "l": 0.34957,
    "c": 0.1332,
    "h": 312.1
  },
  "luminance": 0.0369
}

Semantic roles & 50–950 ramp

primary
#511D6B
secondary
#63A044
accent
#E1477A
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #511D6B

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

Preview Lab → · Contrast checker → · Palette generator →

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