#511A78#511A78

#511A78 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.151 H 306.7°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#511A78
RGBrgb(81, 26, 120)
HSLhsl(275, 64%, 29%)
HSVhsv(275, 78%, 47%)
CMYKcmyk(32.5%, 78.3%, 0%, 52.9%)
CIE-LABlab(23.15, 42.34, -42.53)
CIE-LCHlch(23.15, 60.01, 314.87°)
OKLaboklab(35.65% 0.0903 -0.1209)
OKLCHoklch(35.65% 0.151 306.7)
XYZxyz(7.1522, 3.8443, 18.1309)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A78 #41781A
analogous
#221A78 #511A78 #781A70
triadic
#511A78 #78511A #1A7851
tetradic
#511A78 #78221A #41781A #1A7078
square
#511A78 #78221A #41781A #1A7078
split-complementary
#511A78 #70781A #1A7822
monochromatic
#110519 #2F0F46 #511A78 #7325AA #9338D4

Accessibility & contrast

On white

11.87
#511A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#511A78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511A78
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A78#FFFFFF#000000##FFFFFF
##511A781.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357B
Deuteranopia (green-blind)
#003876
Tritanopia (blue-blind)
#4A3148
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #511a78;
/* rgb */ color: rgb(81, 26, 120);
/* oklch */ color: oklch(35.7% 0.151 306.7);
Tailwind
colors: {
  custom: {
    50: '#865da0',
    500: '#511a78',
    950: '#000000',
  },
}
SCSS
$custom: #511a78;
$custom-light: #865da0;
$custom-dark: #000000;
JSON
{
  "hex": "#511a78",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 120
  },
  "hsl": {
    "h": 275.106,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35654,
    "c": 0.1509,
    "h": 306.7
  },
  "luminance": 0.03844
}

Semantic roles & 50–950 ramp

primary
#511A78
secondary
#6EAC41
accent
#E74086
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040F
muted
#7D797E

Preview Lab

Preview with #511A78

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

Preview Lab → · Contrast checker → · Palette generator →

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