#511966#511966

#511966 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.1% C 0.133 H 315.1°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#511966
RGBrgb(81, 25, 102)
HSLhsl(284, 61%, 25%)
HSVhsv(284, 75%, 40%)
CMYKcmyk(20.6%, 75.5%, 0%, 60%)
CIE-LABlab(21.59, 38.56, -33.41)
CIE-LCHlch(21.59, 51.03, 319.09°)
OKLaboklab(34.11% 0.0944 -0.0941)
OKLCHoklch(34.11% 0.133 315.1)
XYZxyz(6.1389, 3.4041, 12.9015)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511966 #2E6619
analogous
#2A1966 #511966 #661955
triadic
#511966 #665119 #196651
tetradic
#511966 #662A19 #2E6619 #195566
square
#511966 #662A19 #2E6619 #195566
split-complementary
#511966 #556619 #19662A
monochromatic
#140619 #2A0D35 #511966 #782597 #9F31C8

Accessibility & contrast

On white

12.49
#511966 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#511966 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511966
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511966#FFFFFF#000000##FFFFFF
##5119661.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003168
Deuteranopia (green-blind)
#173564
Tritanopia (blue-blind)
#4F293E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #511966;
/* rgb */ color: rgb(81, 25, 102);
/* oklch */ color: oklch(34.1% 0.133 315.1);
Tailwind
colors: {
  custom: {
    50: '#855c92',
    500: '#511966',
    950: '#000000',
  },
}
SCSS
$custom: #511966;
$custom-light: #855c92;
$custom-dark: #000000;
JSON
{
  "hex": "#511966",
  "rgb": {
    "r": 81,
    "g": 25,
    "b": 102
  },
  "hsl": {
    "h": 283.636,
    "s": 60.63,
    "l": 24.902
  },
  "oklch": {
    "l": 0.34111,
    "c": 0.13333,
    "h": 315.1
  },
  "luminance": 0.03404
}

Semantic roles & 50–950 ramp

primary
#511966
secondary
#589C3F
accent
#E44470
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #511966

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

Preview Lab → · Contrast checker → · Palette generator →

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