#511559#511559

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

Color values

HEX#511559
RGBrgb(81, 21, 89)
HSLhsl(293, 62%, 22%)
HSVhsv(293, 76%, 35%)
CMYKcmyk(9%, 76.4%, 0%, 65.1%)
CIE-LABlab(20.07, 37.49, -27.26)
CIE-LCHlch(20.07, 46.35, 323.98°)
OKLaboklab(32.73% 0.1 -0.0761)
OKLCHoklch(32.73% 0.126 322.7)
XYZxyz(5.4645, 3.0072, 9.7419)
Luminance0.0301 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511559 #1D5915
analogous
#2F1559 #511559 #59153F
triadic
#511559 #595115 #155951
tetradic
#511559 #592F15 #1D5915 #153F59
square
#511559 #592F15 #1D5915 #153F59
split-complementary
#511559 #3F5915 #15592F
monochromatic
#170619 #240927 #511559 #7E218B #AB2CBC

Accessibility & contrast

On white

13.11
#511559 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#511559 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511559
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511559#FFFFFF#000000##FFFFFF
##5115591.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5B
Deuteranopia (green-blind)
#1F3357
Tritanopia (blue-blind)
#522135
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #511559;
/* rgb */ color: rgb(81, 21, 89);
/* oklch */ color: oklch(32.7% 0.126 322.7);
Tailwind
colors: {
  custom: {
    50: '#845988',
    500: '#511559',
    950: '#000000',
  },
}
SCSS
$custom: #511559;
$custom-light: #845988;
$custom-dark: #000000;
JSON
{
  "hex": "#511559",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 89
  },
  "hsl": {
    "h": 292.941,
    "s": 61.818,
    "l": 21.569
  },
  "oklch": {
    "l": 0.32733,
    "c": 0.12567,
    "h": 322.7
  },
  "luminance": 0.03007
}

Semantic roles & 50–950 ramp

primary
#511559
secondary
#449139
accent
#E54356
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511559

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

Preview Lab → · Contrast checker → · Palette generator →

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