#511C85#511C85

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

Color values

HEX#511C85
RGBrgb(81, 28, 133)
HSLhsl(270, 65%, 32%)
HSVhsv(270, 79%, 52%)
CMYKcmyk(39.1%, 78.9%, 0%, 47.8%)
CIE-LABlab(24.56, 44.69, -48.47)
CIE-LCHlch(24.56, 65.93, 312.68°)
OKLaboklab(36.99% 0.0852 -0.1384)
OKLCHoklch(36.99% 0.163 301.6)
XYZxyz(8.0412, 4.2733, 22.5869)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C85 #50851C
analogous
#1D1C85 #511C85 #851C85
triadic
#511C85 #85511C #1C8551
tetradic
#511C85 #851D1C #50851C #1C8585
square
#511C85 #851D1C #50851C #1C8585
split-complementary
#511C85 #85851C #1C851D
monochromatic
#130720 #321152 #511C85 #7027B8 #8E44D8

Accessibility & contrast

On white

11.32
#511C85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#511C85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511C85
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C85#FFFFFF#000000##FFFFFF
##511C851.0011.321.8511.32
#FFFFFF11.321.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511c85;
/* rgb */ color: rgb(81, 28, 133);
/* oklch */ color: oklch(37.0% 0.163 301.6);
Tailwind
colors: {
  custom: {
    50: '#875fa9',
    500: '#511c85',
    950: '#000000',
  },
}
SCSS
$custom: #511c85;
$custom-light: #875fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#511c85",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 133
  },
  "hsl": {
    "h": 270.286,
    "s": 65.217,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36986,
    "c": 0.1625,
    "h": 301.6
  },
  "luminance": 0.04273
}

Semantic roles & 50–950 ramp

primary
#511C85
secondary
#7EB845
accent
#E84093
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511C85

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

Preview Lab → · Contrast checker → · Palette generator →

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