#511654#511654

#511654 is a dark, moderate purple. Relative luminance 0.030; OKLCH L 32.5% C 0.120 H 325.9°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#511654
RGBrgb(81, 22, 84)
HSLhsl(297, 58%, 21%)
HSVhsv(297, 74%, 33%)
CMYKcmyk(3.6%, 73.8%, 0%, 67.1%)
CIE-LABlab(19.90, 36.06, -24.18)
CIE-LCHlch(19.90, 43.41, 326.15°)
OKLaboklab(32.5% 0.099 -0.0671)
OKLCHoklch(32.5% 0.12 325.9)
XYZxyz(5.2804, 2.9636, 8.6797)
Luminance0.0296 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511654 #195416
analogous
#321654 #511654 #541638
triadic
#511654 #545116 #165451
tetradic
#511654 #543216 #195416 #163854
square
#511654 #543216 #195416 #163854
split-complementary
#511654 #385416 #165432
monochromatic
#170618 #220924 #511654 #802384 #AF2FB5

Accessibility & contrast

On white

13.19
#511654 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#511654 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511654
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511654#FFFFFF#000000##FFFFFF
##5116541.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092B56
Deuteranopia (green-blind)
#233352
Tritanopia (blue-blind)
#532033
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #511654;
/* rgb */ color: rgb(81, 22, 84);
/* oklch */ color: oklch(32.5% 0.120 325.9);
Tailwind
colors: {
  custom: {
    50: '#845984',
    500: '#511654',
    950: '#000000',
  },
}
SCSS
$custom: #511654;
$custom-light: #845984;
$custom-dark: #000000;
JSON
{
  "hex": "#511654",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 84
  },
  "hsl": {
    "h": 297.097,
    "s": 58.491,
    "l": 20.784
  },
  "oklch": {
    "l": 0.32502,
    "c": 0.11957,
    "h": 325.9
  },
  "luminance": 0.02963
}

Semantic roles & 50–950 ramp

primary
#511654
secondary
#3E8B3A
accent
#E2464E
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511654

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

Preview Lab → · Contrast checker → · Palette generator →

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