#511B78#511B78

#511B78 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.150 H 306.6°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#511B78
RGBrgb(81, 27, 120)
HSLhsl(275, 63%, 29%)
HSVhsv(275, 78%, 47%)
CMYKcmyk(32.5%, 77.5%, 0%, 52.9%)
CIE-LABlab(23.30, 41.91, -42.28)
CIE-LCHlch(23.30, 59.53, 314.74°)
OKLaboklab(35.76% 0.0893 -0.1202)
OKLCHoklch(35.76% 0.15 306.6)
XYZxyz(7.1747, 3.8893, 18.1384)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B78 #42781B
analogous
#231B78 #511B78 #781B71
triadic
#511B78 #78511B #1B7851
tetradic
#511B78 #78231B #42781B #1B7178
square
#511B78 #78231B #42781B #1B7178
split-complementary
#511B78 #71781B #1B7823
monochromatic
#110619 #2F1046 #511B78 #7326AA #933BD3

Accessibility & contrast

On white

11.81
#511B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#511B78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B78
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B78#FFFFFF#000000##FFFFFF
##511B781.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367B
Deuteranopia (green-blind)
#003876
Tritanopia (blue-blind)
#4A3248
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #511b78;
/* rgb */ color: rgb(81, 27, 120);
/* oklch */ color: oklch(35.8% 0.150 306.6);
Tailwind
colors: {
  custom: {
    50: '#865da0',
    500: '#511b78',
    950: '#000000',
  },
}
SCSS
$custom: #511b78;
$custom-light: #865da0;
$custom-dark: #000000;
JSON
{
  "hex": "#511b78",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 120
  },
  "hsl": {
    "h": 274.839,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35762,
    "c": 0.14973,
    "h": 306.6
  },
  "luminance": 0.03889
}

Semantic roles & 50–950 ramp

primary
#511B78
secondary
#6FAC43
accent
#E64187
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C050F
muted
#7D797E

Preview Lab

Preview with #511B78

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

Preview Lab → · Contrast checker → · Palette generator →

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