#511578#511578

#511578 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.2% C 0.156 H 307.4°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#511578
RGBrgb(81, 21, 120)
HSLhsl(276, 70%, 28%)
HSVhsv(276, 83%, 47%)
CMYKcmyk(32.5%, 82.5%, 0%, 52.9%)
CIE-LABlab(22.45, 44.36, -43.67)
CIE-LCHlch(22.45, 62.25, 315.45°)
OKLaboklab(35.16% 0.0949 -0.1242)
OKLCHoklch(35.16% 0.156 307.4)
XYZxyz(7.0509, 3.6418, 18.0972)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511578 #3C7815
analogous
#201578 #511578 #78156D
triadic
#511578 #785115 #157851
tetradic
#511578 #782015 #3C7815 #156D78
square
#511578 #782015 #3C7815 #156D78
split-complementary
#511578 #6D7815 #157820
monochromatic
#12051A #2E0C44 #511578 #741EAC #962DDA

Accessibility & contrast

On white

12.15
#511578 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511578
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511578#FFFFFF#000000##FFFFFF
##5115781.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511578;
/* rgb */ color: rgb(81, 21, 120);
/* oklch */ color: oklch(35.2% 0.156 307.4);
Tailwind
colors: {
  custom: {
    50: '#865ba0',
    500: '#511578',
    950: '#000000',
  },
}
SCSS
$custom: #511578;
$custom-light: #865ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#511578",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 120
  },
  "hsl": {
    "h": 276.364,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.35164,
    "c": 0.15629,
    "h": 307.4
  },
  "luminance": 0.03642
}

Semantic roles & 50–950 ramp

primary
#511578
secondary
#68AE3B
accent
#ED3B81
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040F
muted
#7D797E

Preview Lab

Preview with #511578

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

Preview Lab → · Contrast checker → · Palette generator →

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