#511D78#511D78

#511D78 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.147 H 306.3°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#511D78
RGBrgb(81, 29, 120)
HSLhsl(274, 61%, 29%)
HSVhsv(274, 76%, 47%)
CMYKcmyk(32.5%, 75.8%, 0%, 52.9%)
CIE-LABlab(23.62, 41.00, -41.77)
CIE-LCHlch(23.62, 58.53, 314.47°)
OKLaboklab(35.99% 0.0872 -0.1187)
OKLCHoklch(35.99% 0.147 306.3)
XYZxyz(7.2221, 3.9842, 18.1542)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D78 #44781D
analogous
#241D78 #511D78 #781D72
triadic
#511D78 #78511D #1D7851
tetradic
#511D78 #78241D #44781D #1D7278
square
#511D78 #78241D #44781D #1D7278
split-complementary
#511D78 #72781D #1D7824
monochromatic
#110619 #301147 #511D78 #7229A9 #923FD1

Accessibility & contrast

On white

11.69
#511D78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#511D78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511D78
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D78#FFFFFF#000000##FFFFFF
##511D781.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511d78;
/* rgb */ color: rgb(81, 29, 120);
/* oklch */ color: oklch(36.0% 0.147 306.3);
Tailwind
colors: {
  custom: {
    50: '#865ea0',
    500: '#511d78',
    950: '#000000',
  },
}
SCSS
$custom: #511d78;
$custom-light: #865ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#511d78",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 120
  },
  "hsl": {
    "h": 274.286,
    "s": 61.074,
    "l": 29.216
  },
  "oklch": {
    "l": 0.35986,
    "c": 0.1473,
    "h": 306.3
  },
  "luminance": 0.03984
}

Semantic roles & 50–950 ramp

primary
#511D78
secondary
#71AC45
accent
#E44488
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C050F
muted
#7D797E

Preview Lab

Preview with #511D78

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

Preview Lab → · Contrast checker → · Palette generator →

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