#511677#511677

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

Color values

HEX#511677
RGBrgb(81, 22, 119)
HSLhsl(276, 69%, 28%)
HSVhsv(276, 82%, 47%)
CMYKcmyk(31.9%, 81.5%, 0%, 53.3%)
CIE-LABlab(22.50, 43.74, -42.95)
CIE-LCHlch(22.50, 61.30, 315.52°)
OKLaboklab(35.17% 0.0942 -0.1221)
OKLCHoklch(35.17% 0.154 307.7)
XYZxyz(7.0093, 3.6552, 17.7854)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511677 #3C7716
analogous
#211677 #511677 #77166C
triadic
#511677 #775116 #167751
tetradic
#511677 #772116 #3C7716 #166C77
square
#511677 #772116 #3C7716 #166C77
split-complementary
#511677 #6C7716 #167721
monochromatic
#12051A #2E0C43 #511677 #7420AB #962FD9

Accessibility & contrast

On white

12.13
#511677 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511677
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511677#FFFFFF#000000##FFFFFF
##5116771.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347A
Deuteranopia (green-blind)
#003675
Tritanopia (blue-blind)
#4B2F46
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #511677;
/* rgb */ color: rgb(81, 22, 119);
/* oklch */ color: oklch(35.2% 0.154 307.7);
Tailwind
colors: {
  custom: {
    50: '#865b9f',
    500: '#511677',
    950: '#000000',
  },
}
SCSS
$custom: #511677;
$custom-light: #865b9f;
$custom-dark: #000000;
JSON
{
  "hex": "#511677",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 119
  },
  "hsl": {
    "h": 276.495,
    "s": 68.794,
    "l": 27.647
  },
  "oklch": {
    "l": 0.3517,
    "c": 0.15425,
    "h": 307.7
  },
  "luminance": 0.03655
}

Semantic roles & 50–950 ramp

primary
#511677
secondary
#68AC3C
accent
#EC3C81
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #511677

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

Preview Lab → · Contrast checker → · Palette generator →

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