#511478#511478

#511478 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.157 H 307.5°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#511478
RGBrgb(81, 20, 120)
HSLhsl(277, 71%, 27%)
HSVhsv(277, 83%, 47%)
CMYKcmyk(32.5%, 83.3%, 0%, 52.9%)
CIE-LABlab(22.32, 44.73, -43.88)
CIE-LCHlch(22.32, 62.65, 315.55°)
OKLaboklab(35.08% 0.0957 -0.1248)
OKLCHoklch(35.08% 0.157 307.5)
XYZxyz(7.0329, 3.6058, 18.0911)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511478 #3B7814
analogous
#1F1478 #511478 #78146D
triadic
#511478 #785114 #147851
tetradic
#511478 #781F14 #3B7814 #146D78
square
#511478 #781F14 #3B7814 #146D78
split-complementary
#511478 #6D7814 #14781F
monochromatic
#12041A #2E0B44 #511478 #741DAC #972BDC

Accessibility & contrast

On white

12.20
#511478 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#511478 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511478
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511478#FFFFFF#000000##FFFFFF
##5114781.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337B
Deuteranopia (green-blind)
#003676
Tritanopia (blue-blind)
#4A2E47
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511478;
/* rgb */ color: rgb(81, 20, 120);
/* oklch */ color: oklch(35.1% 0.157 307.5);
Tailwind
colors: {
  custom: {
    50: '#865aa0',
    500: '#511478',
    950: '#000000',
  },
}
SCSS
$custom: #511478;
$custom-light: #865aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#511478",
  "rgb": {
    "r": 81,
    "g": 20,
    "b": 120
  },
  "hsl": {
    "h": 276.6,
    "s": 71.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.35075,
    "c": 0.15727,
    "h": 307.5
  },
  "luminance": 0.03606
}

Semantic roles & 50–950 ramp

primary
#511478
secondary
#67AE3A
accent
#EE3A80
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040F
muted
#7D797E

Preview Lab

Preview with #511478

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

Preview Lab → · Contrast checker → · Palette generator →

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