#511561#511561

#511561 is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.3% C 0.133 H 318.2°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#511561
RGBrgb(81, 21, 97)
HSLhsl(287, 64%, 23%)
HSVhsv(287, 78%, 38%)
CMYKcmyk(16.5%, 78.4%, 0%, 62%)
CIE-LABlab(20.63, 39.17, -31.68)
CIE-LCHlch(20.63, 50.38, 321.04°)
OKLaboklab(33.31% 0.0994 -0.089)
OKLCHoklch(33.31% 0.133 318.2)
XYZxyz(5.8189, 3.1490, 11.6083)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511561 #256115
analogous
#2B1561 #511561 #61154B
triadic
#511561 #615115 #156151
tetradic
#511561 #612B15 #256115 #154B61
square
#511561 #612B15 #256115 #154B61
split-complementary
#511561 #4B6115 #15612B
monochromatic
#150519 #270A2F #511561 #7B2093 #A52BC6

Accessibility & contrast

On white

12.89
#511561 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#511561 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511561
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511561#FFFFFF#000000##FFFFFF
##5115611.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E63
Deuteranopia (green-blind)
#19345F
Tritanopia (blue-blind)
#51253A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #511561;
/* rgb */ color: rgb(81, 21, 97);
/* oklch */ color: oklch(33.3% 0.133 318.2);
Tailwind
colors: {
  custom: {
    50: '#85598e',
    500: '#511561',
    950: '#000000',
  },
}
SCSS
$custom: #511561;
$custom-light: #85598e;
$custom-dark: #000000;
JSON
{
  "hex": "#511561",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 97
  },
  "hsl": {
    "h": 287.368,
    "s": 64.407,
    "l": 23.137
  },
  "oklch": {
    "l": 0.33309,
    "c": 0.13341,
    "h": 318.2
  },
  "luminance": 0.03149
}

Semantic roles & 50–950 ramp

primary
#511561
secondary
#4E983A
accent
#E74064
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511561

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

Preview Lab → · Contrast checker → · Palette generator →

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