#511567#511567

#511567 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.8% C 0.139 H 315.0°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#511567
RGBrgb(81, 21, 103)
HSLhsl(284, 66%, 24%)
HSVhsv(284, 80%, 40%)
CMYKcmyk(21.4%, 79.6%, 0%, 59.6%)
CIE-LABlab(21.08, 40.48, -34.90)
CIE-LCHlch(21.08, 53.45, 319.23°)
OKLaboklab(33.77% 0.0986 -0.0985)
OKLCHoklch(33.77% 0.139 315)
XYZxyz(6.1093, 3.2652, 13.1378)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511567 #2B6715
analogous
#281567 #511567 #671554
triadic
#511567 #675115 #156751
tetradic
#511567 #672815 #2B6715 #155467
square
#511567 #672815 #2B6715 #155467
split-complementary
#511567 #546715 #156728
monochromatic
#140519 #290B34 #511567 #791F9A #A12ACD

Accessibility & contrast

On white

12.70
#511567 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511567
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511567#FFFFFF#000000##FFFFFF
##5115671.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F69
Deuteranopia (green-blind)
#113465
Tritanopia (blue-blind)
#4F273D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511567;
/* rgb */ color: rgb(81, 21, 103);
/* oklch */ color: oklch(33.8% 0.139 315.0);
Tailwind
colors: {
  custom: {
    50: '#855a93',
    500: '#511567',
    950: '#000000',
  },
}
SCSS
$custom: #511567;
$custom-light: #855a93;
$custom-dark: #000000;
JSON
{
  "hex": "#511567",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 103
  },
  "hsl": {
    "h": 283.902,
    "s": 66.129,
    "l": 24.314
  },
  "oklch": {
    "l": 0.33766,
    "c": 0.13932,
    "h": 315
  },
  "luminance": 0.03265
}

Semantic roles & 50–950 ramp

primary
#511567
secondary
#559E3A
accent
#E93F6C
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #511567

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

Preview Lab → · Contrast checker → · Palette generator →

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