#511780#511780

#511780 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.162 H 304.0°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#511780
RGBrgb(81, 23, 128)
HSLhsl(273, 70%, 30%)
HSVhsv(273, 82%, 50%)
CMYKcmyk(36.7%, 82%, 0%, 49.8%)
CIE-LABlab(23.41, 45.50, -47.19)
CIE-LCHlch(23.41, 65.56, 313.95°)
OKLaboklab(36.05% 0.0909 -0.1346)
OKLCHoklch(36.05% 0.162 304)
XYZxyz(7.5951, 3.9207, 20.7745)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511780 #468017
analogous
#1D1780 #511780 #80177B
triadic
#511780 #805117 #178051
tetradic
#511780 #801D17 #468017 #177B80
square
#511780 #801D17 #468017 #177B80
split-complementary
#511780 #7B8017 #17801D
monochromatic
#10051A #300E4C #511780 #7220B4 #9136DB

Accessibility & contrast

On white

11.77
#511780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#511780 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511780
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511780#FFFFFF#000000##FFFFFF
##5117801.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003783
Deuteranopia (green-blind)
#00387E
Tritanopia (blue-blind)
#48334C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #511780;
/* rgb */ color: rgb(81, 23, 128);
/* oklch */ color: oklch(36.0% 0.162 304.0);
Tailwind
colors: {
  custom: {
    50: '#875ca6',
    500: '#511780',
    950: '#000000',
  },
}
SCSS
$custom: #511780;
$custom-light: #875ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#511780",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 128
  },
  "hsl": {
    "h": 273.143,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.36048,
    "c": 0.16242,
    "h": 304
  },
  "luminance": 0.03921
}

Semantic roles & 50–950 ramp

primary
#511780
secondary
#73B43E
accent
#EC3B8B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #511780

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

Preview Lab → · Contrast checker → · Palette generator →

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