#511C81#511C81

#511C81 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.158 H 303.0°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#511C81
RGBrgb(81, 28, 129)
HSLhsl(271, 64%, 31%)
HSVhsv(271, 78%, 51%)
CMYKcmyk(37.2%, 78.3%, 0%, 49.4%)
CIE-LABlab(24.21, 43.69, -46.52)
CIE-LCHlch(24.21, 63.82, 313.20°)
OKLaboklab(36.64% 0.0862 -0.1326)
OKLCHoklch(36.64% 0.158 303)
XYZxyz(7.7701, 4.1648, 21.1592)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C81 #4C811C
analogous
#1E1C81 #511C81 #811C7E
triadic
#511C81 #81511C #1C8151
tetradic
#511C81 #811E1C #4C811C #1C7E81
square
#511C81 #811E1C #4C811C #1C7E81
split-complementary
#511C81 #7E811C #1C811E
monochromatic
#12061C #31114F #511C81 #7127B3 #8F42D6

Accessibility & contrast

On white

11.46
#511C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#511C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511C81
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C81#FFFFFF#000000##FFFFFF
##511C811.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003984
Deuteranopia (green-blind)
#00397F
Tritanopia (blue-blind)
#47364D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #511c81;
/* rgb */ color: rgb(81, 28, 129);
/* oklch */ color: oklch(36.6% 0.158 303.0);
Tailwind
colors: {
  custom: {
    50: '#875ea6',
    500: '#511c81',
    950: '#000000',
  },
}
SCSS
$custom: #511c81;
$custom-light: #875ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#511c81",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 129
  },
  "hsl": {
    "h": 271.485,
    "s": 64.331,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36636,
    "c": 0.15821,
    "h": 303
  },
  "luminance": 0.04165
}

Semantic roles & 50–950 ramp

primary
#511C81
secondary
#7AB444
accent
#E74090
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #511C81

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

Preview Lab → · Contrast checker → · Palette generator →

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