#511466#511466

#511466 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.6% C 0.140 H 315.6°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#511466
RGBrgb(81, 20, 102)
HSLhsl(285, 67%, 24%)
HSVhsv(285, 80%, 40%)
CMYKcmyk(20.6%, 80.4%, 0%, 60%)
CIE-LABlab(20.86, 40.65, -34.59)
CIE-LCHlch(20.86, 53.38, 319.60°)
OKLaboklab(33.59% 0.0997 -0.0975)
OKLCHoklch(33.59% 0.14 315.6)
XYZxyz(6.0414, 3.2092, 12.8690)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511466 #296614
analogous
#281466 #511466 #661452
triadic
#511466 #665114 #146651
tetradic
#511466 #662814 #296614 #145266
square
#511466 #662814 #296614 #145266
split-complementary
#511466 #526614 #146628
monochromatic
#14051A #280A33 #511466 #7A1E99 #A228CC

Accessibility & contrast

On white

12.79
#511466 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#511466 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511466
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511466#FFFFFF#000000##FFFFFF
##5114661.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F68
Deuteranopia (green-blind)
#123464
Tritanopia (blue-blind)
#4F263C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #511466;
/* rgb */ color: rgb(81, 20, 102);
/* oklch */ color: oklch(33.6% 0.140 315.6);
Tailwind
colors: {
  custom: {
    50: '#855992',
    500: '#511466',
    950: '#000000',
  },
}
SCSS
$custom: #511466;
$custom-light: #855992;
$custom-dark: #000000;
JSON
{
  "hex": "#511466",
  "rgb": {
    "r": 81,
    "g": 20,
    "b": 102
  },
  "hsl": {
    "h": 284.634,
    "s": 67.213,
    "l": 23.922
  },
  "oklch": {
    "l": 0.33591,
    "c": 0.1395,
    "h": 315.6
  },
  "luminance": 0.03209
}

Semantic roles & 50–950 ramp

primary
#511466
secondary
#529D39
accent
#EA3E6A
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #511466

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

Preview Lab → · Contrast checker → · Palette generator →

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