#511E86#511E86

#511E86 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.161 H 301.0°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#511E86
RGBrgb(81, 30, 134)
HSLhsl(269, 63%, 32%)
HSVhsv(269, 78%, 53%)
CMYKcmyk(39.6%, 77.6%, 0%, 47.5%)
CIE-LABlab(24.95, 44.07, -48.46)
CIE-LCHlch(24.95, 65.50, 312.28°)
OKLaboklab(37.29% 0.0831 -0.1383)
OKLCHoklch(37.29% 0.161 301)
XYZxyz(8.1596, 4.3990, 22.9689)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E86 #53861E
analogous
#1E1F86 #511E86 #851E86
triadic
#511E86 #86511E #1E8651
tetradic
#511E86 #861E1F #53861E #1E8685
square
#511E86 #861E1F #53861E #1E8685
split-complementary
#511E86 #86851E #1F861E
monochromatic
#150822 #331354 #511E86 #6F29B8 #8E48D6

Accessibility & contrast

On white

11.17
#511E86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#511E86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511E86
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E86#FFFFFF#000000##FFFFFF
##511E861.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B89
Deuteranopia (green-blind)
#003B84
Tritanopia (blue-blind)
#453951
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #511e86;
/* rgb */ color: rgb(81, 30, 134);
/* oklch */ color: oklch(37.3% 0.161 301.0);
Tailwind
colors: {
  custom: {
    50: '#8760aa',
    500: '#511e86',
    950: '#000000',
  },
}
SCSS
$custom: #511e86;
$custom-light: #8760aa;
$custom-dark: #000000;
JSON
{
  "hex": "#511e86",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 134
  },
  "hsl": {
    "h": 269.423,
    "s": 63.415,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37289,
    "c": 0.16139,
    "h": 301
  },
  "luminance": 0.04399
}

Semantic roles & 50–950 ramp

primary
#511E86
secondary
#81B847
accent
#E64195
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511E86

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

Preview Lab → · Contrast checker → · Palette generator →

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