#511771#511771

#511771 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.147 H 310.1°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#511771
RGBrgb(81, 23, 113)
HSLhsl(279, 66%, 27%)
HSVhsv(279, 80%, 44%)
CMYKcmyk(28.3%, 79.6%, 0%, 55.7%)
CIE-LABlab(22.14, 41.94, -39.68)
CIE-LCHlch(22.14, 57.74, 316.59°)
OKLaboklab(34.76% 0.0947 -0.1125)
OKLCHoklch(34.76% 0.147 310.1)
XYZxyz(6.6798, 3.5545, 15.9538)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511771 #377117
analogous
#241771 #511771 #711764
triadic
#511771 #715117 #177151
tetradic
#511771 #712417 #377117 #176471
square
#511771 #712417 #377117 #176471
split-complementary
#511771 #647117 #177124
monochromatic
#120519 #2D0D3E #511771 #7521A4 #992ED4

Accessibility & contrast

On white

12.27
#511771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#511771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511771
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511771#FFFFFF#000000##FFFFFF
##5117711.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#00366F
Tritanopia (blue-blind)
#4C2D43
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511771;
/* rgb */ color: rgb(81, 23, 113);
/* oklch */ color: oklch(34.8% 0.147 310.1);
Tailwind
colors: {
  custom: {
    50: '#865b9a',
    500: '#511771',
    950: '#000000',
  },
}
SCSS
$custom: #511771;
$custom-light: #865b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#511771",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 278.667,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.34764,
    "c": 0.14707,
    "h": 310.1
  },
  "luminance": 0.03554
}

Semantic roles & 50–950 ramp

primary
#511771
secondary
#63A73D
accent
#E93F7B
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #511771

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

Preview Lab → · Contrast checker → · Palette generator →

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