#511C78#511C78

#511C78 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.149 H 306.5°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#511C78
RGBrgb(81, 28, 120)
HSLhsl(275, 62%, 29%)
HSVhsv(275, 77%, 47%)
CMYKcmyk(32.5%, 76.7%, 0%, 52.9%)
CIE-LABlab(23.46, 41.46, -42.03)
CIE-LCHlch(23.46, 59.04, 314.61°)
OKLaboklab(35.87% 0.0883 -0.1194)
OKLCHoklch(35.87% 0.149 306.5)
XYZxyz(7.1980, 3.9360, 18.1462)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C78 #43781C
analogous
#231C78 #511C78 #781C71
triadic
#511C78 #78511C #1C7851
tetradic
#511C78 #78231C #43781C #1C7178
square
#511C78 #78231C #43781C #1C7178
split-complementary
#511C78 #71781C #1C7823
monochromatic
#110619 #301046 #511C78 #7228AA #933DD2

Accessibility & contrast

On white

11.75
#511C78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#511C78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511C78
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C78#FFFFFF#000000##FFFFFF
##511C781.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.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: #511c78;
/* rgb */ color: rgb(81, 28, 120);
/* oklch */ color: oklch(35.9% 0.149 306.5);
Tailwind
colors: {
  custom: {
    50: '#865ea0',
    500: '#511c78',
    950: '#000000',
  },
}
SCSS
$custom: #511c78;
$custom-light: #865ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#511c78",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 120
  },
  "hsl": {
    "h": 274.565,
    "s": 62.162,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35872,
    "c": 0.14853,
    "h": 306.5
  },
  "luminance": 0.03936
}

Semantic roles & 50–950 ramp

primary
#511C78
secondary
#70AC44
accent
#E54388
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C050F
muted
#7D797E

Preview Lab

Preview with #511C78

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

Preview Lab → · Contrast checker → · Palette generator →

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