#511663#511663

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

Color values

HEX#511663
RGBrgb(81, 22, 99)
HSLhsl(286, 64%, 24%)
HSVhsv(286, 78%, 39%)
CMYKcmyk(18.2%, 77.8%, 0%, 61.2%)
CIE-LABlab(20.92, 39.19, -32.53)
CIE-LCHlch(20.92, 50.93, 320.31°)
OKLaboklab(33.56% 0.0981 -0.0915)
OKLCHoklch(33.56% 0.134 317)
XYZxyz(5.9320, 3.2243, 12.1118)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511663 #286316
analogous
#2A1663 #511663 #63164E
triadic
#511663 #635116 #166351
tetradic
#511663 #632A16 #286316 #164E63
square
#511663 #632A16 #286316 #164E63
split-complementary
#511663 #4E6316 #16632A
monochromatic
#140619 #280B31 #511663 #7A2195 #A32CC7

Accessibility & contrast

On white

12.77
#511663 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511663
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511663#FFFFFF#000000##FFFFFF
##5116631.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F65
Deuteranopia (green-blind)
#173461
Tritanopia (blue-blind)
#50263B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #511663;
/* rgb */ color: rgb(81, 22, 99);
/* oklch */ color: oklch(33.6% 0.134 317.0);
Tailwind
colors: {
  custom: {
    50: '#855a90',
    500: '#511663',
    950: '#000000',
  },
}
SCSS
$custom: #511663;
$custom-light: #855a90;
$custom-dark: #000000;
JSON
{
  "hex": "#511663",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 99
  },
  "hsl": {
    "h": 285.974,
    "s": 63.636,
    "l": 23.725
  },
  "oklch": {
    "l": 0.33561,
    "c": 0.13415,
    "h": 317
  },
  "luminance": 0.03224
}

Semantic roles & 50–950 ramp

primary
#511663
secondary
#519A3B
accent
#E74168
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511663

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

Preview Lab → · Contrast checker → · Palette generator →

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