#511680#511680

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

Color values

HEX#511680
RGBrgb(81, 22, 128)
HSLhsl(273, 71%, 29%)
HSVhsv(273, 83%, 50%)
CMYKcmyk(36.7%, 82.8%, 0%, 49.8%)
CIE-LABlab(23.28, 45.88, -47.41)
CIE-LCHlch(23.28, 65.98, 314.06°)
OKLaboklab(35.96% 0.0917 -0.1352)
OKLCHoklch(35.96% 0.163 304.2)
XYZxyz(7.5756, 3.8817, 20.7680)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511680 #458016
analogous
#1C1680 #511680 #80167A
triadic
#511680 #805116 #168051
tetradic
#511680 #801C16 #458016 #167A80
square
#511680 #801C16 #458016 #167A80
split-complementary
#511680 #7A8016 #16801C
monochromatic
#11041A #300D4C #511680 #721FB4 #9234DC

Accessibility & contrast

On white

11.82
#511680 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511680
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511680#FFFFFF#000000##FFFFFF
##5116801.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003683
Deuteranopia (green-blind)
#00377E
Tritanopia (blue-blind)
#48334C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #511680;
/* rgb */ color: rgb(81, 22, 128);
/* oklch */ color: oklch(36.0% 0.163 304.2);
Tailwind
colors: {
  custom: {
    50: '#875ca6',
    500: '#511680',
    950: '#000000',
  },
}
SCSS
$custom: #511680;
$custom-light: #875ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#511680",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 128
  },
  "hsl": {
    "h": 273.396,
    "s": 70.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35956,
    "c": 0.1634,
    "h": 304.2
  },
  "luminance": 0.03882
}

Semantic roles & 50–950 ramp

primary
#511680
secondary
#72B53D
accent
#ED3A8A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #511680

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

Preview Lab → · Contrast checker → · Palette generator →

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