#511662#511662

#511662 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.5% C 0.133 H 317.5°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#511662
RGBrgb(81, 22, 98)
HSLhsl(287, 63%, 24%)
HSVhsv(287, 78%, 38%)
CMYKcmyk(17.3%, 77.6%, 0%, 61.6%)
CIE-LABlab(20.85, 38.97, -31.99)
CIE-LCHlch(20.85, 50.42, 320.62°)
OKLaboklab(33.49% 0.0982 -0.0899)
OKLCHoklch(33.49% 0.133 317.5)
XYZxyz(5.8845, 3.2052, 11.8616)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511662 #276216
analogous
#2B1662 #511662 #62164D
triadic
#511662 #625116 #166251
tetradic
#511662 #622B16 #276216 #164D62
square
#511662 #622B16 #276216 #164D62
split-complementary
#511662 #4D6216 #16622B
monochromatic
#150619 #280B30 #511662 #7A2194 #A42CC6

Accessibility & contrast

On white

12.80
#511662 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511662
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511662#FFFFFF#000000##FFFFFF
##5116621.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511662;
/* rgb */ color: rgb(81, 22, 98);
/* oklch */ color: oklch(33.5% 0.133 317.5);
Tailwind
colors: {
  custom: {
    50: '#855a8f',
    500: '#511662',
    950: '#000000',
  },
}
SCSS
$custom: #511662;
$custom-light: #855a8f;
$custom-dark: #000000;
JSON
{
  "hex": "#511662",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 98
  },
  "hsl": {
    "h": 286.579,
    "s": 63.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.33486,
    "c": 0.13316,
    "h": 317.5
  },
  "luminance": 0.03205
}

Semantic roles & 50–950 ramp

primary
#511662
secondary
#50993B
accent
#E64166
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511662

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

Preview Lab → · Contrast checker → · Palette generator →

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