#511E87#511E87

#511E87 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.162 H 300.7°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#511E87
RGBrgb(81, 30, 135)
HSLhsl(269, 64%, 32%)
HSVhsv(269, 78%, 53%)
CMYKcmyk(40%, 77.8%, 0%, 47.1%)
CIE-LABlab(25.04, 44.32, -48.94)
CIE-LCHlch(25.04, 66.03, 312.16°)
OKLaboklab(37.38% 0.0828 -0.1398)
OKLCHoklch(37.38% 0.162 300.7)
XYZxyz(8.2297, 4.4271, 23.3379)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E87 #54871E
analogous
#1E2087 #511E87 #861E87
triadic
#511E87 #87511E #1E8751
tetradic
#511E87 #871E20 #54871E #1E8786
square
#511E87 #871E20 #54871E #1E8786
split-complementary
#511E87 #87861E #20871E
monochromatic
#150823 #331355 #511E87 #6F29B9 #8E49D7

Accessibility & contrast

On white

11.14
#511E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511E87
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E87#FFFFFF#000000##FFFFFF
##511E871.0011.141.8911.14
#FFFFFF11.141.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511e87;
/* rgb */ color: rgb(81, 30, 135);
/* oklch */ color: oklch(37.4% 0.162 300.7);
Tailwind
colors: {
  custom: {
    50: '#8760ab',
    500: '#511e87',
    950: '#000000',
  },
}
SCSS
$custom: #511e87;
$custom-light: #8760ab;
$custom-dark: #000000;
JSON
{
  "hex": "#511e87",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 135
  },
  "hsl": {
    "h": 269.143,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37377,
    "c": 0.16248,
    "h": 300.7
  },
  "luminance": 0.04427
}

Semantic roles & 50–950 ramp

primary
#511E87
secondary
#82B948
accent
#E74196
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511E87

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

Preview Lab → · Contrast checker → · Palette generator →

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