#511A76#511A76

#511A76 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.149 H 307.6°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#511A76
RGBrgb(81, 26, 118)
HSLhsl(276, 64%, 28%)
HSVhsv(276, 78%, 46%)
CMYKcmyk(31.4%, 78%, 0%, 53.7%)
CIE-LABlab(22.99, 41.86, -41.52)
CIE-LCHlch(22.99, 58.96, 315.23°)
OKLaboklab(35.49% 0.0907 -0.1179)
OKLCHoklch(35.49% 0.149 307.6)
XYZxyz(7.0321, 3.7962, 17.4983)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A76 #3F761A
analogous
#231A76 #511A76 #761A6D
triadic
#511A76 #76511A #1A7651
tetradic
#511A76 #76231A #3F761A #1A6D76
square
#511A76 #76231A #3F761A #1A6D76
split-complementary
#511A76 #6D761A #1A7623
monochromatic
#110619 #2F0F44 #511A76 #7325A8 #9437D3

Accessibility & contrast

On white

11.94
#511A76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511A76
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A76#FFFFFF#000000##FFFFFF
##511A761.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003579
Deuteranopia (green-blind)
#003774
Tritanopia (blue-blind)
#4B3047
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #511a76;
/* rgb */ color: rgb(81, 26, 118);
/* oklch */ color: oklch(35.5% 0.149 307.6);
Tailwind
colors: {
  custom: {
    50: '#865d9e',
    500: '#511a76',
    950: '#000000',
  },
}
SCSS
$custom: #511a76;
$custom-light: #865d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#511a76",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 118
  },
  "hsl": {
    "h": 275.87,
    "s": 63.889,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35488,
    "c": 0.1488,
    "h": 307.6
  },
  "luminance": 0.03796
}

Semantic roles & 50–950 ramp

primary
#511A76
secondary
#6CAB41
accent
#E74184
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #511A76

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

Preview Lab → · Contrast checker → · Palette generator →

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