#511B77#511B77

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

Color values

HEX#511B77
RGBrgb(81, 27, 119)
HSLhsl(275, 63%, 29%)
HSVhsv(275, 77%, 47%)
CMYKcmyk(31.9%, 77.3%, 0%, 53.3%)
CIE-LABlab(23.22, 41.66, -41.78)
CIE-LCHlch(23.22, 59.00, 314.92°)
OKLaboklab(35.68% 0.0895 -0.1187)
OKLCHoklch(35.68% 0.149 307)
XYZxyz(7.1143, 3.8652, 17.8205)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B77 #41771B
analogous
#231B77 #511B77 #771B6F
triadic
#511B77 #77511B #1B7751
tetradic
#511B77 #77231B #41771B #1B6F77
square
#511B77 #77231B #41771B #1B6F77
split-complementary
#511B77 #6F771B #1B7723
monochromatic
#110619 #2F1045 #511B77 #7326A9 #933AD2

Accessibility & contrast

On white

11.84
#511B77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#511B77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B77
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B77#FFFFFF#000000##FFFFFF
##511B771.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511b77;
/* rgb */ color: rgb(81, 27, 119);
/* oklch */ color: oklch(35.7% 0.149 307.0);
Tailwind
colors: {
  custom: {
    50: '#865d9f',
    500: '#511b77',
    950: '#000000',
  },
}
SCSS
$custom: #511b77;
$custom-light: #865d9f;
$custom-dark: #000000;
JSON
{
  "hex": "#511b77",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 119
  },
  "hsl": {
    "h": 275.217,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35679,
    "c": 0.14866,
    "h": 307
  },
  "luminance": 0.03865
}

Semantic roles & 50–950 ramp

primary
#511B77
secondary
#6EAB42
accent
#E64286
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #511B77

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

Preview Lab → · Contrast checker → · Palette generator →

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