#511777#511777

#511777 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.153 H 307.5°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#511777
RGBrgb(81, 23, 119)
HSLhsl(276, 68%, 28%)
HSVhsv(276, 81%, 47%)
CMYKcmyk(31.9%, 80.7%, 0%, 53.3%)
CIE-LABlab(22.63, 43.35, -42.73)
CIE-LCHlch(22.63, 60.87, 315.41°)
OKLaboklab(35.27% 0.0934 -0.1215)
OKLCHoklch(35.27% 0.153 307.5)
XYZxyz(7.0288, 3.6941, 17.7919)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511777 #3D7717
analogous
#211777 #511777 #77176D
triadic
#511777 #775117 #177751
tetradic
#511777 #772117 #3D7717 #176D77
square
#511777 #772117 #3D7717 #176D77
split-complementary
#511777 #6D7717 #177721
monochromatic
#11051A #2E0D44 #511777 #7421AA #9531D7

Accessibility & contrast

On white

12.08
#511777 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511777
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511777#FFFFFF#000000##FFFFFF
##5117771.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511777;
/* rgb */ color: rgb(81, 23, 119);
/* oklch */ color: oklch(35.3% 0.153 307.5);
Tailwind
colors: {
  custom: {
    50: '#865b9f',
    500: '#511777',
    950: '#000000',
  },
}
SCSS
$custom: #511777;
$custom-light: #865b9f;
$custom-dark: #000000;
JSON
{
  "hex": "#511777",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 119
  },
  "hsl": {
    "h": 276.25,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.35265,
    "c": 0.1532,
    "h": 307.5
  },
  "luminance": 0.03694
}

Semantic roles & 50–950 ramp

primary
#511777
secondary
#69AC3E
accent
#EA3D82
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #511777

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

Preview Lab → · Contrast checker → · Palette generator →

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