#511651#511651

#511651 is a dark, moderate purple. Relative luminance 0.029; OKLCH L 32.3% C 0.117 H 327.9°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#511651
RGBrgb(81, 22, 81)
HSLhsl(300, 57%, 20%)
HSVhsv(300, 73%, 32%)
CMYKcmyk(0%, 72.8%, 0%, 68.2%)
CIE-LABlab(19.71, 35.46, -22.45)
CIE-LCHlch(19.71, 41.98, 327.66°)
OKLaboklab(32.31% 0.0989 -0.0621)
OKLCHoklch(32.31% 0.117 327.9)
XYZxyz(5.1654, 2.9176, 8.0741)
Luminance0.0292 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511651 #165116
analogous
#331651 #511651 #511633
triadic
#511651 #515116 #165151
tetradic
#511651 #513316 #165116 #163351
square
#511651 #513316 #165116 #163351
split-complementary
#511651 #335116 #165133
monochromatic
#180718 #210921 #511651 #812381 #B130B1

Accessibility & contrast

On white

13.26
#511651 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#511651 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511651
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511651#FFFFFF#000000##FFFFFF
##5116511.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2B53
Deuteranopia (green-blind)
#25324F
Tritanopia (blue-blind)
#541E31
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #511651;
/* rgb */ color: rgb(81, 22, 81);
/* oklch */ color: oklch(32.3% 0.117 327.9);
Tailwind
colors: {
  custom: {
    50: '#845982',
    500: '#511651',
    950: '#000000',
  },
}
SCSS
$custom: #511651;
$custom-light: #845982;
$custom-dark: #000000;
JSON
{
  "hex": "#511651",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 81
  },
  "hsl": {
    "h": 300,
    "s": 57.282,
    "l": 20.196
  },
  "oklch": {
    "l": 0.32307,
    "c": 0.11675,
    "h": 327.9
  },
  "luminance": 0.02917
}

Semantic roles & 50–950 ramp

primary
#511651
secondary
#3A883A
accent
#E14747
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #511651

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

Preview Lab → · Contrast checker → · Palette generator →

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