#511B86#511B86

#511B86 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.165 H 301.4°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#511B86
RGBrgb(81, 27, 134)
HSLhsl(270, 66%, 32%)
HSVhsv(270, 80%, 53%)
CMYKcmyk(39.6%, 79.9%, 0%, 47.5%)
CIE-LABlab(24.50, 45.37, -49.20)
CIE-LCHlch(24.50, 66.92, 312.68°)
OKLaboklab(36.97% 0.0858 -0.1405)
OKLCHoklch(36.97% 0.165 301.4)
XYZxyz(8.0873, 4.2544, 22.9447)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B86 #50861B
analogous
#1B1B86 #511B86 #861B86
triadic
#511B86 #86511B #1B8651
tetradic
#511B86 #861B1B #50861B #1B8686
square
#511B86 #861B1B #50861B #1B8686
split-complementary
#511B86 #86861B #1B861B
monochromatic
#130620 #321153 #511B86 #7025B9 #8E42D9

Accessibility & contrast

On white

11.35
#511B86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#511B86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B86
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B86#FFFFFF#000000##FFFFFF
##511B861.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511b86;
/* rgb */ color: rgb(81, 27, 134);
/* oklch */ color: oklch(37.0% 0.165 301.4);
Tailwind
colors: {
  custom: {
    50: '#875eaa',
    500: '#511b86',
    950: '#000000',
  },
}
SCSS
$custom: #511b86;
$custom-light: #875eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#511b86",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 134
  },
  "hsl": {
    "h": 270.28,
    "s": 66.46,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36971,
    "c": 0.16463,
    "h": 301.4
  },
  "luminance": 0.04254
}

Semantic roles & 50–950 ramp

primary
#511B86
secondary
#7EB944
accent
#E93E93
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511B86

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

Preview Lab → · Contrast checker → · Palette generator →

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