#511565#511565

#511565 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.6% C 0.137 H 316.0°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#511565
RGBrgb(81, 21, 101)
HSLhsl(285, 66%, 24%)
HSVhsv(285, 79%, 40%)
CMYKcmyk(19.8%, 79.2%, 0%, 60.4%)
CIE-LABlab(20.93, 40.04, -33.84)
CIE-LCHlch(20.93, 52.42, 319.80°)
OKLaboklab(33.61% 0.0989 -0.0953)
OKLCHoklch(33.61% 0.137 316)
XYZxyz(6.0101, 3.2255, 12.6154)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511565 #296515
analogous
#291565 #511565 #651551
triadic
#511565 #655115 #156551
tetradic
#511565 #652915 #296515 #155165
square
#511565 #652915 #296515 #155165
split-complementary
#511565 #516515 #156529
monochromatic
#140519 #280A32 #511565 #7A2098 #A22ACA

Accessibility & contrast

On white

12.77
#511565 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#511565 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511565
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511565#FFFFFF#000000##FFFFFF
##5115651.0012.771.6512.77
#FFFFFF12.771.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F67
Deuteranopia (green-blind)
#143463
Tritanopia (blue-blind)
#50263C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #511565;
/* rgb */ color: rgb(81, 21, 101);
/* oklch */ color: oklch(33.6% 0.137 316.0);
Tailwind
colors: {
  custom: {
    50: '#855a91',
    500: '#511565',
    950: '#000000',
  },
}
SCSS
$custom: #511565;
$custom-light: #855a91;
$custom-dark: #000000;
JSON
{
  "hex": "#511565",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 101
  },
  "hsl": {
    "h": 285,
    "s": 65.574,
    "l": 23.922
  },
  "oklch": {
    "l": 0.33611,
    "c": 0.13734,
    "h": 316
  },
  "luminance": 0.03225
}

Semantic roles & 50–950 ramp

primary
#511565
secondary
#529C3A
accent
#E93F6A
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #511565

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

Preview Lab → · Contrast checker → · Palette generator →

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