#511580#511580

#511580 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.9% C 0.164 H 304.3°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#511580
RGBrgb(81, 21, 128)
HSLhsl(274, 72%, 29%)
HSVhsv(274, 84%, 50%)
CMYKcmyk(36.7%, 83.6%, 0%, 49.8%)
CIE-LABlab(23.15, 46.25, -47.62)
CIE-LCHlch(23.15, 66.38, 314.17°)
OKLaboklab(35.87% 0.0925 -0.1358)
OKLCHoklch(35.87% 0.164 304.3)
XYZxyz(7.5569, 3.8442, 20.7618)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511580 #448015
analogous
#1C1580 #511580 #80157A
triadic
#511580 #805115 #158051
tetradic
#511580 #801C15 #448015 #157A80
square
#511580 #801C15 #448015 #157A80
split-complementary
#511580 #7A8015 #15801C
monochromatic
#11041A #300C4B #511580 #721EB5 #9232DD

Accessibility & contrast

On white

11.87
#511580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#511580 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511580
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511580#FFFFFF#000000##FFFFFF
##5115801.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511580;
/* rgb */ color: rgb(81, 21, 128);
/* oklch */ color: oklch(35.9% 0.164 304.3);
Tailwind
colors: {
  custom: {
    50: '#875ba6',
    500: '#511580',
    950: '#000000',
  },
}
SCSS
$custom: #511580;
$custom-light: #875ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#511580",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 128
  },
  "hsl": {
    "h": 273.645,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.35868,
    "c": 0.16434,
    "h": 304.3
  },
  "luminance": 0.03844
}

Semantic roles & 50–950 ramp

primary
#511580
secondary
#71B53C
accent
#EF3989
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #511580

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

Preview Lab → · Contrast checker → · Palette generator →

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