#511579#511579

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

Color values

HEX#511579
RGBrgb(81, 21, 121)
HSLhsl(276, 70%, 28%)
HSVhsv(276, 83%, 47%)
CMYKcmyk(33.1%, 82.6%, 0%, 52.5%)
CIE-LABlab(22.54, 44.59, -44.17)
CIE-LCHlch(22.54, 62.76, 315.27°)
OKLaboklab(35.25% 0.0946 -0.1257)
OKLCHoklch(35.25% 0.157 307)
XYZxyz(7.1119, 3.6662, 18.4184)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511579 #3D7915
analogous
#1F1579 #511579 #79156F
triadic
#511579 #795115 #157951
tetradic
#511579 #791F15 #3D7915 #156F79
square
#511579 #791F15 #3D7915 #156F79
split-complementary
#511579 #6F7915 #15791F
monochromatic
#11051A #2E0C45 #511579 #741EAD #952EDB

Accessibility & contrast

On white

12.12
#511579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#511579 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511579
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511579#FFFFFF#000000##FFFFFF
##5115791.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347C
Deuteranopia (green-blind)
#003677
Tritanopia (blue-blind)
#4A2F47
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #511579;
/* rgb */ color: rgb(81, 21, 121);
/* oklch */ color: oklch(35.3% 0.157 307.0);
Tailwind
colors: {
  custom: {
    50: '#875ba0',
    500: '#511579',
    950: '#000000',
  },
}
SCSS
$custom: #511579;
$custom-light: #875ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#511579",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 121
  },
  "hsl": {
    "h": 276,
    "s": 70.423,
    "l": 27.843
  },
  "oklch": {
    "l": 0.3525,
    "c": 0.15729,
    "h": 307
  },
  "luminance": 0.03666
}

Semantic roles & 50–950 ramp

primary
#511579
secondary
#69AF3B
accent
#ED3B82
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #511579

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

Preview Lab → · Contrast checker → · Palette generator →

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