#511D84#511D84

#511D84 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.160 H 301.8°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#511D84
RGBrgb(81, 29, 132)
HSLhsl(270, 64%, 32%)
HSVhsv(270, 78%, 52%)
CMYKcmyk(38.6%, 78%, 0%, 48.2%)
CIE-LABlab(24.62, 44.00, -47.74)
CIE-LCHlch(24.62, 64.92, 312.67°)
OKLaboklab(37% 0.0845 -0.1362)
OKLCHoklch(37% 0.16 301.8)
XYZxyz(7.9966, 4.2940, 22.2329)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D84 #50841D
analogous
#1E1D84 #511D84 #841D84
triadic
#511D84 #84511D #1D8451
tetradic
#511D84 #841E1D #50841D #1D8484
square
#511D84 #841E1D #50841D #1D8484
split-complementary
#511D84 #84841D #1D841E
monochromatic
#130720 #321252 #511D84 #7028B6 #8E45D6

Accessibility & contrast

On white

11.30
#511D84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#511D84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511D84
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D84#FFFFFF#000000##FFFFFF
##511D841.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A87
Deuteranopia (green-blind)
#003A82
Tritanopia (blue-blind)
#46384F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #511d84;
/* rgb */ color: rgb(81, 29, 132);
/* oklch */ color: oklch(37.0% 0.160 301.8);
Tailwind
colors: {
  custom: {
    50: '#875fa9',
    500: '#511d84',
    950: '#000000',
  },
}
SCSS
$custom: #511d84;
$custom-light: #875fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#511d84",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 132
  },
  "hsl": {
    "h": 270.291,
    "s": 63.975,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37005,
    "c": 0.16033,
    "h": 301.8
  },
  "luminance": 0.04294
}

Semantic roles & 50–950 ramp

primary
#511D84
secondary
#7EB746
accent
#E74193
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511D84

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

Preview Lab → · Contrast checker → · Palette generator →

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