#511B76#511B76

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

Color values

HEX#511B76
RGBrgb(81, 27, 118)
HSLhsl(276, 63%, 28%)
HSVhsv(276, 77%, 46%)
CMYKcmyk(31.4%, 77.1%, 0%, 53.7%)
CIE-LABlab(23.14, 41.42, -41.27)
CIE-LCHlch(23.14, 58.47, 315.10°)
OKLaboklab(35.6% 0.0897 -0.1172)
OKLCHoklch(35.6% 0.148 307.4)
XYZxyz(7.0546, 3.8413, 17.5058)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B76 #40761B
analogous
#231B76 #511B76 #761B6D
triadic
#511B76 #76511B #1B7651
tetradic
#511B76 #76231B #40761B #1B6D76
square
#511B76 #76231B #40761B #1B6D76
split-complementary
#511B76 #6D761B #1B7623
monochromatic
#110619 #2F1044 #511B76 #7326A8 #943AD2

Accessibility & contrast

On white

11.88
#511B76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511B76
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B76#FFFFFF#000000##FFFFFF
##511B761.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511b76;
/* rgb */ color: rgb(81, 27, 118);
/* oklch */ color: oklch(35.6% 0.148 307.4);
Tailwind
colors: {
  custom: {
    50: '#865d9e',
    500: '#511b76',
    950: '#000000',
  },
}
SCSS
$custom: #511b76;
$custom-light: #865d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#511b76",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 118
  },
  "hsl": {
    "h": 275.604,
    "s": 62.759,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35596,
    "c": 0.1476,
    "h": 307.4
  },
  "luminance": 0.03841
}

Semantic roles & 50–950 ramp

primary
#511B76
secondary
#6DAA42
accent
#E64285
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #511B76

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

Preview Lab → · Contrast checker → · Palette generator →

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