#511659#511659

#511659 is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.8% C 0.124 H 322.7°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#511659
RGBrgb(81, 22, 89)
HSLhsl(293, 60%, 22%)
HSVhsv(293, 75%, 35%)
CMYKcmyk(9%, 75.3%, 0%, 65.1%)
CIE-LABlab(20.22, 37.07, -27.02)
CIE-LCHlch(20.22, 45.87, 323.91°)
OKLaboklab(32.84% 0.0989 -0.0754)
OKLCHoklch(32.84% 0.124 322.7)
XYZxyz(5.4832, 3.0447, 9.7481)
Luminance0.0304 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511659 #1E5916
analogous
#301659 #511659 #591640
triadic
#511659 #595116 #165951
tetradic
#511659 #593016 #1E5916 #164059
square
#511659 #593016 #1E5916 #164059
split-complementary
#511659 #405916 #165930
monochromatic
#160619 #240A28 #511659 #7E228A #AA2EBB

Accessibility & contrast

On white

13.05
#511659 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#511659 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511659
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511659#FFFFFF#000000##FFFFFF
##5116591.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022C5B
Deuteranopia (green-blind)
#203357
Tritanopia (blue-blind)
#522236
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #511659;
/* rgb */ color: rgb(81, 22, 89);
/* oklch */ color: oklch(32.8% 0.124 322.7);
Tailwind
colors: {
  custom: {
    50: '#845988',
    500: '#511659',
    950: '#000000',
  },
}
SCSS
$custom: #511659;
$custom-light: #845988;
$custom-dark: #000000;
JSON
{
  "hex": "#511659",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 89
  },
  "hsl": {
    "h": 292.836,
    "s": 60.36,
    "l": 21.765
  },
  "oklch": {
    "l": 0.32839,
    "c": 0.12434,
    "h": 322.7
  },
  "luminance": 0.03044
}

Semantic roles & 50–950 ramp

primary
#511659
secondary
#45903B
accent
#E44457
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511659

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

Preview Lab → · Contrast checker → · Palette generator →

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