#511986#511986

#511986 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.167 H 301.7°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#511986
RGBrgb(81, 25, 134)
HSLhsl(271, 69%, 31%)
HSVhsv(271, 81%, 53%)
CMYKcmyk(39.6%, 81.3%, 0%, 47.5%)
CIE-LABlab(24.21, 46.19, -49.66)
CIE-LCHlch(24.21, 67.82, 312.92°)
OKLaboklab(36.77% 0.0875 -0.1418)
OKLCHoklch(36.77% 0.167 301.7)
XYZxyz(8.0430, 4.1658, 22.9300)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511986 #4E8619
analogous
#1B1986 #511986 #861984
triadic
#511986 #865119 #198651
tetradic
#511986 #861B19 #4E8619 #198486
square
#511986 #861B19 #4E8619 #198486
split-complementary
#511986 #848619 #19861B
monochromatic
#13061F #320F52 #511986 #7023BA #8F3EDB

Accessibility & contrast

On white

11.46
#511986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#511986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511986
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511986#FFFFFF#000000##FFFFFF
##5119861.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.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: #511986;
/* rgb */ color: rgb(81, 25, 134);
/* oklch */ color: oklch(36.8% 0.167 301.7);
Tailwind
colors: {
  custom: {
    50: '#885daa',
    500: '#511986',
    950: '#000000',
  },
}
SCSS
$custom: #511986;
$custom-light: #885daa;
$custom-dark: #000000;
JSON
{
  "hex": "#511986",
  "rgb": {
    "r": 81,
    "g": 25,
    "b": 134
  },
  "hsl": {
    "h": 270.826,
    "s": 68.553,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36774,
    "c": 0.16667,
    "h": 301.7
  },
  "luminance": 0.04166
}

Semantic roles & 50–950 ramp

primary
#511986
secondary
#7CBA41
accent
#EB3C91
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511986

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

Preview Lab → · Contrast checker → · Palette generator →

#511986 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva