#511A86#511A86

#511A86 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.166 H 301.5°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#511A86
RGBrgb(81, 26, 134)
HSLhsl(271, 68%, 31%)
HSVhsv(271, 81%, 53%)
CMYKcmyk(39.6%, 80.6%, 0%, 47.5%)
CIE-LABlab(24.35, 45.78, -49.43)
CIE-LCHlch(24.35, 67.38, 312.81°)
OKLaboklab(36.87% 0.0867 -0.1412)
OKLCHoklch(36.87% 0.166 301.5)
XYZxyz(8.0648, 4.2093, 22.9372)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A86 #4F861A
analogous
#1B1A86 #511A86 #861A85
triadic
#511A86 #86511A #1A8651
tetradic
#511A86 #861B1A #4F861A #1A8586
square
#511A86 #861B1A #4F861A #1A8586
split-complementary
#511A86 #85861A #1A861B
monochromatic
#13061F #321053 #511A86 #7024B9 #8F40DA

Accessibility & contrast

On white

11.40
#511A86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#511A86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511A86
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A86#FFFFFF#000000##FFFFFF
##511A861.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003989
Deuteranopia (green-blind)
#003984
Tritanopia (blue-blind)
#453750
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #511a86;
/* rgb */ color: rgb(81, 26, 134);
/* oklch */ color: oklch(36.9% 0.166 301.5);
Tailwind
colors: {
  custom: {
    50: '#885eaa',
    500: '#511a86',
    950: '#000000',
  },
}
SCSS
$custom: #511a86;
$custom-light: #885eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#511a86",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 134
  },
  "hsl": {
    "h": 270.556,
    "s": 67.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36871,
    "c": 0.16566,
    "h": 301.5
  },
  "luminance": 0.04209
}

Semantic roles & 50–950 ramp

primary
#511A86
secondary
#7DB942
accent
#EA3D92
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511A86

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

Preview Lab → · Contrast checker → · Palette generator →

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