#511664#511664

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

Color values

HEX#511664
RGBrgb(81, 22, 100)
HSLhsl(285, 64%, 24%)
HSVhsv(285, 78%, 39%)
CMYKcmyk(19%, 78%, 0%, 60.8%)
CIE-LABlab(20.99, 39.41, -33.07)
CIE-LCHlch(20.99, 51.45, 320.00°)
OKLaboklab(33.64% 0.098 -0.0931)
OKLCHoklch(33.64% 0.135 316.5)
XYZxyz(5.9801, 3.2435, 12.3652)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511664 #296416
analogous
#2A1664 #511664 #641650
triadic
#511664 #645116 #166451
tetradic
#511664 #642A16 #296416 #165064
square
#511664 #642A16 #296416 #165064
split-complementary
#511664 #506416 #16642A
monochromatic
#140619 #280B32 #511664 #7A2196 #A22CC8

Accessibility & contrast

On white

12.74
#511664 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#511664 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511664
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511664#FFFFFF#000000##FFFFFF
##5116641.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F66
Deuteranopia (green-blind)
#163462
Tritanopia (blue-blind)
#50263C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #511664;
/* rgb */ color: rgb(81, 22, 100);
/* oklch */ color: oklch(33.6% 0.135 316.5);
Tailwind
colors: {
  custom: {
    50: '#855a91',
    500: '#511664',
    950: '#000000',
  },
}
SCSS
$custom: #511664;
$custom-light: #855a91;
$custom-dark: #000000;
JSON
{
  "hex": "#511664",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 100
  },
  "hsl": {
    "h": 285.385,
    "s": 63.934,
    "l": 23.922
  },
  "oklch": {
    "l": 0.33637,
    "c": 0.13514,
    "h": 316.5
  },
  "luminance": 0.03243
}

Semantic roles & 50–950 ramp

primary
#511664
secondary
#529B3B
accent
#E74169
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0B040D
muted
#7C797D

Preview Lab

Preview with #511664

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

Preview Lab → · Contrast checker → · Palette generator →

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