#511464#511464

#511464 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.4% C 0.138 H 316.7°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#511464
RGBrgb(81, 20, 100)
HSLhsl(286, 67%, 24%)
HSVhsv(286, 80%, 39%)
CMYKcmyk(19%, 80%, 0%, 60.8%)
CIE-LABlab(20.71, 40.22, -33.52)
CIE-LCHlch(20.71, 52.36, 320.19°)
OKLaboklab(33.44% 0.1 -0.0944)
OKLCHoklch(33.44% 0.138 316.7)
XYZxyz(5.9434, 3.1700, 12.3529)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511464 #276414
analogous
#291464 #511464 #64144F
triadic
#511464 #645114 #146451
tetradic
#511464 #642914 #276414 #144F64
square
#511464 #642914 #276414 #144F64
split-complementary
#511464 #4F6414 #146429
monochromatic
#15051A #280A31 #511464 #7A1E97 #A428CA

Accessibility & contrast

On white

12.85
#511464 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#511464 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511464
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511464#FFFFFF#000000##FFFFFF
##5114641.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E66
Deuteranopia (green-blind)
#143462
Tritanopia (blue-blind)
#50253B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #511464;
/* rgb */ color: rgb(81, 20, 100);
/* oklch */ color: oklch(33.4% 0.138 316.7);
Tailwind
colors: {
  custom: {
    50: '#855991',
    500: '#511464',
    950: '#000000',
  },
}
SCSS
$custom: #511464;
$custom-light: #855991;
$custom-dark: #000000;
JSON
{
  "hex": "#511464",
  "rgb": {
    "r": 81,
    "g": 20,
    "b": 100
  },
  "hsl": {
    "h": 285.75,
    "s": 66.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.33437,
    "c": 0.13755,
    "h": 316.7
  },
  "luminance": 0.0317
}

Semantic roles & 50–950 ramp

primary
#511464
secondary
#509B38
accent
#EA3E67
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0B040D
muted
#7C797D

Preview Lab

Preview with #511464

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

Preview Lab → · Contrast checker → · Palette generator →

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