#511D85#511D85

#511D85 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.161 H 301.5°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#511D85
RGBrgb(81, 29, 133)
HSLhsl(270, 64%, 32%)
HSVhsv(270, 78%, 52%)
CMYKcmyk(39.1%, 78.2%, 0%, 47.8%)
CIE-LABlab(24.71, 44.26, -48.22)
CIE-LCHlch(24.71, 65.45, 312.54°)
OKLaboklab(37.09% 0.0843 -0.1377)
OKLCHoklch(37.09% 0.161 301.5)
XYZxyz(8.0653, 4.3215, 22.5950)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D85 #51851D
analogous
#1D1D85 #511D85 #851D85
triadic
#511D85 #85511D #1D8551
tetradic
#511D85 #851D1D #51851D #1D8585
square
#511D85 #851D1D #51851D #1D8585
split-complementary
#511D85 #85851D #1D851D
monochromatic
#140721 #321253 #511D85 #7028B7 #8E46D7

Accessibility & contrast

On white

11.26
#511D85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511D85
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D85#FFFFFF#000000##FFFFFF
##511D851.0011.261.8611.26
#FFFFFF11.261.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A88
Deuteranopia (green-blind)
#003A83
Tritanopia (blue-blind)
#463850
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #511d85;
/* rgb */ color: rgb(81, 29, 133);
/* oklch */ color: oklch(37.1% 0.161 301.5);
Tailwind
colors: {
  custom: {
    50: '#875fa9',
    500: '#511d85',
    950: '#000000',
  },
}
SCSS
$custom: #511d85;
$custom-light: #875fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#511d85",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 133
  },
  "hsl": {
    "h": 270,
    "s": 64.198,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37092,
    "c": 0.16141,
    "h": 301.5
  },
  "luminance": 0.04322
}

Semantic roles & 50–950 ramp

primary
#511D85
secondary
#7FB846
accent
#E74194
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511D85

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

Preview Lab → · Contrast checker → · Palette generator →

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