#511D77#511D77

#511D77 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.146 H 306.7°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#511D77
RGBrgb(81, 29, 119)
HSLhsl(275, 61%, 29%)
HSVhsv(275, 76%, 47%)
CMYKcmyk(31.9%, 75.6%, 0%, 53.3%)
CIE-LABlab(23.54, 40.76, -41.26)
CIE-LCHlch(23.54, 58.00, 314.65°)
OKLaboklab(35.9% 0.0874 -0.1172)
OKLCHoklch(35.9% 0.146 306.7)
XYZxyz(7.1618, 3.9600, 17.8363)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D77 #43771D
analogous
#241D77 #511D77 #771D70
triadic
#511D77 #77511D #1D7751
tetradic
#511D77 #77241D #43771D #1D7077
square
#511D77 #77241D #43771D #1D7077
split-complementary
#511D77 #70771D #1D7724
monochromatic
#110619 #301146 #511D77 #7229A8 #933ED0

Accessibility & contrast

On white

11.72
#511D77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511D77
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D77#FFFFFF#000000##FFFFFF
##511D771.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511d77;
/* rgb */ color: rgb(81, 29, 119);
/* oklch */ color: oklch(35.9% 0.146 306.7);
Tailwind
colors: {
  custom: {
    50: '#865e9f',
    500: '#511d77',
    950: '#000000',
  },
}
SCSS
$custom: #511d77;
$custom-light: #865e9f;
$custom-dark: #000000;
JSON
{
  "hex": "#511d77",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 119
  },
  "hsl": {
    "h": 274.667,
    "s": 60.811,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35904,
    "c": 0.14622,
    "h": 306.7
  },
  "luminance": 0.0396
}

Semantic roles & 50–950 ramp

primary
#511D77
secondary
#70AB45
accent
#E44487
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #511D77

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

Preview Lab → · Contrast checker → · Palette generator →

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