#511776#511776

#511776 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.152 H 308.0°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#511776
RGBrgb(81, 23, 118)
HSLhsl(277, 67%, 28%)
HSVhsv(277, 81%, 46%)
CMYKcmyk(31.4%, 80.5%, 0%, 53.7%)
CIE-LABlab(22.55, 43.11, -42.23)
CIE-LCHlch(22.55, 60.35, 315.59°)
OKLaboklab(35.18% 0.0936 -0.12)
OKLCHoklch(35.18% 0.152 308)
XYZxyz(6.9691, 3.6702, 17.4773)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511776 #3C7617
analogous
#221776 #511776 #76176B
triadic
#511776 #765117 #177651
tetradic
#511776 #762217 #3C7617 #176B76
square
#511776 #762217 #3C7617 #176B76
split-complementary
#511776 #6B7617 #177622
monochromatic
#12051A #2E0D43 #511776 #7421A9 #9631D7

Accessibility & contrast

On white

12.11
#511776 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#511776 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511776
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511776#FFFFFF#000000##FFFFFF
##5117761.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003479
Deuteranopia (green-blind)
#003674
Tritanopia (blue-blind)
#4B2F46
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #511776;
/* rgb */ color: rgb(81, 23, 118);
/* oklch */ color: oklch(35.2% 0.152 308.0);
Tailwind
colors: {
  custom: {
    50: '#865b9e',
    500: '#511776',
    950: '#000000',
  },
}
SCSS
$custom: #511776;
$custom-light: #865b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#511776",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 118
  },
  "hsl": {
    "h": 276.632,
    "s": 67.376,
    "l": 27.647
  },
  "oklch": {
    "l": 0.35181,
    "c": 0.15218,
    "h": 308
  },
  "luminance": 0.0367
}

Semantic roles & 50–950 ramp

primary
#511776
secondary
#68AB3E
accent
#EA3E81
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #511776

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

Preview Lab → · Contrast checker → · Palette generator →

#511776 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva