#511C84#511C84

#511C84 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.161 H 302.0°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#511C84
RGBrgb(81, 28, 132)
HSLhsl(271, 65%, 31%)
HSVhsv(271, 79%, 52%)
CMYKcmyk(38.6%, 78.8%, 0%, 48.2%)
CIE-LABlab(24.47, 44.44, -47.99)
CIE-LCHlch(24.47, 65.40, 312.80°)
OKLaboklab(36.9% 0.0855 -0.1369)
OKLCHoklch(36.9% 0.161 302)
XYZxyz(7.9724, 4.2457, 22.2248)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C84 #4F841C
analogous
#1D1C84 #511C84 #841C83
triadic
#511C84 #84511C #1C8451
tetradic
#511C84 #841D1C #4F841C #1C8384
square
#511C84 #841D1C #4F841C #1C8384
split-complementary
#511C84 #83841C #1C841D
monochromatic
#13071F #321152 #511C84 #7027B6 #8F43D7

Accessibility & contrast

On white

11.36
#511C84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511C84
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C84#FFFFFF#000000##FFFFFF
##511C841.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511c84;
/* rgb */ color: rgb(81, 28, 132);
/* oklch */ color: oklch(36.9% 0.161 302.0);
Tailwind
colors: {
  custom: {
    50: '#875fa9',
    500: '#511c84',
    950: '#000000',
  },
}
SCSS
$custom: #511c84;
$custom-light: #875fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#511c84",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 132
  },
  "hsl": {
    "h": 270.577,
    "s": 65,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36898,
    "c": 0.16143,
    "h": 302
  },
  "luminance": 0.04246
}

Semantic roles & 50–950 ramp

primary
#511C84
secondary
#7DB745
accent
#E84092
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511C84

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

Preview Lab → · Contrast checker → · Palette generator →

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