#511A77#511A77

#511A77 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.150 H 307.2°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#511A77
RGBrgb(81, 26, 119)
HSLhsl(275, 64%, 28%)
HSVhsv(275, 78%, 47%)
CMYKcmyk(31.9%, 78.2%, 0%, 53.3%)
CIE-LABlab(23.07, 42.10, -42.03)
CIE-LCHlch(23.07, 59.49, 315.05°)
OKLaboklab(35.57% 0.0905 -0.1194)
OKLCHoklch(35.57% 0.15 307.2)
XYZxyz(7.0918, 3.8201, 17.8129)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A77 #40771A
analogous
#221A77 #511A77 #771A6E
triadic
#511A77 #77511A #1A7751
tetradic
#511A77 #77221A #40771A #1A6E77
square
#511A77 #77221A #40771A #1A6E77
split-complementary
#511A77 #6E771A #1A7722
monochromatic
#110519 #2F0F45 #511A77 #7325A9 #9438D3

Accessibility & contrast

On white

11.90
#511A77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#511A77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511A77
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A77#FFFFFF#000000##FFFFFF
##511A771.0011.901.7611.90
#FFFFFF11.901.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357A
Deuteranopia (green-blind)
#003775
Tritanopia (blue-blind)
#4B3147
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #511a77;
/* rgb */ color: rgb(81, 26, 119);
/* oklch */ color: oklch(35.6% 0.150 307.2);
Tailwind
colors: {
  custom: {
    50: '#865d9f',
    500: '#511a77',
    950: '#000000',
  },
}
SCSS
$custom: #511a77;
$custom-light: #865d9f;
$custom-dark: #000000;
JSON
{
  "hex": "#511a77",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 119
  },
  "hsl": {
    "h": 275.484,
    "s": 64.138,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35571,
    "c": 0.14985,
    "h": 307.2
  },
  "luminance": 0.0382
}

Semantic roles & 50–950 ramp

primary
#511A77
secondary
#6DAC41
accent
#E74185
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #511A77

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

Preview Lab → · Contrast checker → · Palette generator →

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