#511C77#511C77

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

Color values

HEX#511C77
RGBrgb(81, 28, 119)
HSLhsl(275, 62%, 29%)
HSVhsv(275, 76%, 47%)
CMYKcmyk(31.9%, 76.5%, 0%, 53.3%)
CIE-LABlab(23.38, 41.22, -41.52)
CIE-LCHlch(23.38, 58.51, 314.79°)
OKLaboklab(35.79% 0.0885 -0.118)
OKLCHoklch(35.79% 0.147 306.9)
XYZxyz(7.1376, 3.9118, 17.8282)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C77 #42771C
analogous
#241C77 #511C77 #771C70
triadic
#511C77 #77511C #1C7751
tetradic
#511C77 #77241C #42771C #1C7077
square
#511C77 #77241C #42771C #1C7077
split-complementary
#511C77 #70771C #1C7724
monochromatic
#110619 #2F1045 #511C77 #7328A9 #933CD1

Accessibility & contrast

On white

11.78
#511C77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511C77
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C77#FFFFFF#000000##FFFFFF
##511C771.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367A
Deuteranopia (green-blind)
#003875
Tritanopia (blue-blind)
#4B3248
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #511c77;
/* rgb */ color: rgb(81, 28, 119);
/* oklch */ color: oklch(35.8% 0.147 306.9);
Tailwind
colors: {
  custom: {
    50: '#865e9f',
    500: '#511c77',
    950: '#000000',
  },
}
SCSS
$custom: #511c77;
$custom-light: #865e9f;
$custom-dark: #000000;
JSON
{
  "hex": "#511c77",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 119
  },
  "hsl": {
    "h": 274.945,
    "s": 61.905,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3579,
    "c": 0.14746,
    "h": 306.9
  },
  "luminance": 0.03912
}

Semantic roles & 50–950 ramp

primary
#511C77
secondary
#6FAB44
accent
#E54387
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #511C77

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

Preview Lab → · Contrast checker → · Palette generator →

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