#511778#511778

#511778 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.154 H 307.1°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#511778
RGBrgb(81, 23, 120)
HSLhsl(276, 68%, 28%)
HSVhsv(276, 81%, 47%)
CMYKcmyk(32.5%, 80.8%, 0%, 52.9%)
CIE-LABlab(22.72, 43.58, -43.23)
CIE-LCHlch(22.72, 61.39, 315.23°)
OKLaboklab(35.35% 0.0931 -0.123)
OKLCHoklch(35.35% 0.154 307.1)
XYZxyz(7.0892, 3.7183, 18.1099)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511778 #3E7817
analogous
#201778 #511778 #78176E
triadic
#511778 #785117 #177851
tetradic
#511778 #782017 #3E7817 #176E78
square
#511778 #782017 #3E7817 #176E78
split-complementary
#511778 #6E7817 #177820
monochromatic
#11051A #2E0D45 #511778 #7421AB #9532D8

Accessibility & contrast

On white

12.04
#511778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#511778 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511778
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511778#FFFFFF#000000##FFFFFF
##5117781.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347B
Deuteranopia (green-blind)
#003776
Tritanopia (blue-blind)
#4A3047
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #511778;
/* rgb */ color: rgb(81, 23, 120);
/* oklch */ color: oklch(35.4% 0.154 307.1);
Tailwind
colors: {
  custom: {
    50: '#865ca0',
    500: '#511778',
    950: '#000000',
  },
}
SCSS
$custom: #511778;
$custom-light: #865ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#511778",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 120
  },
  "hsl": {
    "h": 275.876,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35351,
    "c": 0.15423,
    "h": 307.1
  },
  "luminance": 0.03718
}

Semantic roles & 50–950 ramp

primary
#511778
secondary
#6AAD3E
accent
#EB3D83
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040F
muted
#7D797E

Preview Lab

Preview with #511778

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

Preview Lab → · Contrast checker → · Palette generator →

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