#511D86#511D86

#511D86 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.163 H 301.1°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#511D86
RGBrgb(81, 29, 134)
HSLhsl(270, 64%, 32%)
HSVhsv(270, 78%, 53%)
CMYKcmyk(39.6%, 78.4%, 0%, 47.5%)
CIE-LABlab(24.79, 44.51, -48.71)
CIE-LCHlch(24.79, 65.98, 312.42°)
OKLaboklab(37.18% 0.084 -0.1391)
OKLCHoklch(37.18% 0.163 301.1)
XYZxyz(8.1347, 4.3492, 22.9605)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D86 #52861D
analogous
#1D1E86 #511D86 #861D86
triadic
#511D86 #86511D #1D8651
tetradic
#511D86 #861D1E #52861D #1D8686
square
#511D86 #861D1E #52861D #1D8686
split-complementary
#511D86 #86861D #1E861D
monochromatic
#140721 #331254 #511D86 #6F28B8 #8E46D7

Accessibility & contrast

On white

11.23
#511D86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#511D86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511D86
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D86#FFFFFF#000000##FFFFFF
##511D861.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A89
Deuteranopia (green-blind)
#003A84
Tritanopia (blue-blind)
#453851
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #511d86;
/* rgb */ color: rgb(81, 29, 134);
/* oklch */ color: oklch(37.2% 0.163 301.1);
Tailwind
colors: {
  custom: {
    50: '#875faa',
    500: '#511d86',
    950: '#000000',
  },
}
SCSS
$custom: #511d86;
$custom-light: #875faa;
$custom-dark: #000000;
JSON
{
  "hex": "#511d86",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 134
  },
  "hsl": {
    "h": 269.714,
    "s": 64.417,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3718,
    "c": 0.1625,
    "h": 301.1
  },
  "luminance": 0.04349
}

Semantic roles & 50–950 ramp

primary
#511D86
secondary
#80B946
accent
#E74095
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511D86

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

Preview Lab → · Contrast checker → · Palette generator →

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