#511569#511569

#511569 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.9% C 0.141 H 314.0°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#511569
RGBrgb(81, 21, 105)
HSLhsl(283, 67%, 25%)
HSVhsv(283, 80%, 41%)
CMYKcmyk(22.9%, 80%, 0%, 58.8%)
CIE-LABlab(21.23, 40.92, -35.96)
CIE-LCHlch(21.23, 54.48, 318.69°)
OKLaboklab(33.92% 0.0982 -0.1016)
OKLCHoklch(33.92% 0.141 314)
XYZxyz(6.2109, 3.3058, 13.6728)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511569 #2D6915
analogous
#271569 #511569 #691557
triadic
#511569 #695115 #156951
tetradic
#511569 #692715 #2D6915 #155769
square
#511569 #692715 #2D6915 #155769
split-complementary
#511569 #576915 #156927
monochromatic
#14051A #2A0B36 #511569 #781F9C #A029CF

Accessibility & contrast

On white

12.64
#511569 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#511569 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511569
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511569#FFFFFF#000000##FFFFFF
##5115691.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306B
Deuteranopia (green-blind)
#0E3467
Tritanopia (blue-blind)
#4F283E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511569;
/* rgb */ color: rgb(81, 21, 105);
/* oklch */ color: oklch(33.9% 0.141 314.0);
Tailwind
colors: {
  custom: {
    50: '#855a94',
    500: '#511569',
    950: '#000000',
  },
}
SCSS
$custom: #511569;
$custom-light: #855a94;
$custom-dark: #000000;
JSON
{
  "hex": "#511569",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 105
  },
  "hsl": {
    "h": 282.857,
    "s": 66.667,
    "l": 24.706
  },
  "oklch": {
    "l": 0.33923,
    "c": 0.1413,
    "h": 314
  },
  "luminance": 0.03306
}

Semantic roles & 50–950 ramp

primary
#511569
secondary
#57A03A
accent
#EA3E6F
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #511569

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

Preview Lab → · Contrast checker → · Palette generator →

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