#511F86#511F86

#511F86 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.4% C 0.160 H 300.8°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#511F86
RGBrgb(81, 31, 134)
HSLhsl(269, 62%, 32%)
HSVhsv(269, 77%, 53%)
CMYKcmyk(39.6%, 76.9%, 0%, 47.5%)
CIE-LABlab(25.11, 43.61, -48.20)
CIE-LCHlch(25.11, 65.00, 312.14°)
OKLaboklab(37.4% 0.0822 -0.1376)
OKLCHoklch(37.4% 0.16 300.8)
XYZxyz(8.1853, 4.4505, 22.9774)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F86 #54861F
analogous
#1F2186 #511F86 #841F86
triadic
#511F86 #86511F #1F8651
tetradic
#511F86 #861F21 #54861F #1F8684
square
#511F86 #861F21 #54861F #1F8684
split-complementary
#511F86 #86841F #21861F
monochromatic
#150823 #331454 #511F86 #6F2AB8 #8E4AD5

Accessibility & contrast

On white

11.11
#511F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#511F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F86
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F86#FFFFFF#000000##FFFFFF
##511F861.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511f86;
/* rgb */ color: rgb(81, 31, 134);
/* oklch */ color: oklch(37.4% 0.160 300.8);
Tailwind
colors: {
  custom: {
    50: '#8760aa',
    500: '#511f86',
    950: '#000000',
  },
}
SCSS
$custom: #511f86;
$custom-light: #8760aa;
$custom-dark: #000000;
JSON
{
  "hex": "#511f86",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 134
  },
  "hsl": {
    "h": 269.126,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37401,
    "c": 0.16026,
    "h": 300.8
  },
  "luminance": 0.04451
}

Semantic roles & 50–950 ramp

primary
#511F86
secondary
#82B849
accent
#E54296
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511F86

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

Preview Lab → · Contrast checker → · Palette generator →

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