#511E77#511E77

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

Color values

HEX#511E77
RGBrgb(81, 30, 119)
HSLhsl(274, 60%, 29%)
HSVhsv(274, 75%, 47%)
CMYKcmyk(31.9%, 74.8%, 0%, 53.3%)
CIE-LABlab(23.70, 40.29, -40.99)
CIE-LCHlch(23.70, 57.48, 314.51°)
OKLaboklab(36.02% 0.0864 -0.1164)
OKLCHoklch(36.02% 0.145 306.6)
XYZxyz(7.1867, 4.0099, 17.8446)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E77 #44771E
analogous
#251E77 #511E77 #771E71
triadic
#511E77 #77511E #1E7751
tetradic
#511E77 #77251E #44771E #1E7177
square
#511E77 #77251E #44771E #1E7177
split-complementary
#511E77 #71771E #1E7725
monochromatic
#110618 #301246 #511E77 #722AA8 #9240CF

Accessibility & contrast

On white

11.65
#511E77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511E77
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E77#FFFFFF#000000##FFFFFF
##511E771.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377A
Deuteranopia (green-blind)
#003975
Tritanopia (blue-blind)
#4A3348
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #511e77;
/* rgb */ color: rgb(81, 30, 119);
/* oklch */ color: oklch(36.0% 0.145 306.6);
Tailwind
colors: {
  custom: {
    50: '#865f9f',
    500: '#511e77',
    950: '#000000',
  },
}
SCSS
$custom: #511e77;
$custom-light: #865f9f;
$custom-dark: #000000;
JSON
{
  "hex": "#511e77",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 119
  },
  "hsl": {
    "h": 274.382,
    "s": 59.732,
    "l": 29.216
  },
  "oklch": {
    "l": 0.36021,
    "c": 0.14495,
    "h": 306.6
  },
  "luminance": 0.0401
}

Semantic roles & 50–950 ramp

primary
#511E77
secondary
#71AB46
accent
#E34588
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #511E77

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

Preview Lab → · Contrast checker → · Palette generator →

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