#511D87#511D87

#511D87 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.164 H 300.8°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#511D87
RGBrgb(81, 29, 135)
HSLhsl(269, 65%, 32%)
HSVhsv(269, 79%, 53%)
CMYKcmyk(40%, 78.5%, 0%, 47.1%)
CIE-LABlab(24.88, 44.76, -49.19)
CIE-LCHlch(24.88, 66.51, 312.30°)
OKLaboklab(37.27% 0.0838 -0.1405)
OKLCHoklch(37.27% 0.164 300.8)
XYZxyz(8.2048, 4.3773, 23.3296)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D87 #53871D
analogous
#1D1E87 #511D87 #861D87
triadic
#511D87 #87511D #1D8751
tetradic
#511D87 #871D1E #53871D #1D8786
square
#511D87 #871D1E #53871D #1D8786
split-complementary
#511D87 #87861D #1E871D
monochromatic
#150722 #331255 #511D87 #6F28B9 #8E47D7

Accessibility & contrast

On white

11.20
#511D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#511D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511D87
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D87#FFFFFF#000000##FFFFFF
##511D871.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511d87;
/* rgb */ color: rgb(81, 29, 135);
/* oklch */ color: oklch(37.3% 0.164 300.8);
Tailwind
colors: {
  custom: {
    50: '#875fab',
    500: '#511d87',
    950: '#000000',
  },
}
SCSS
$custom: #511d87;
$custom-light: #875fab;
$custom-dark: #000000;
JSON
{
  "hex": "#511d87",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 135
  },
  "hsl": {
    "h": 269.434,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37269,
    "c": 0.16358,
    "h": 300.8
  },
  "luminance": 0.04377
}

Semantic roles & 50–950 ramp

primary
#511D87
secondary
#81B946
accent
#E84095
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511D87

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

Preview Lab → · Contrast checker → · Palette generator →

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