#511D62#511D62

#511D62 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.3% C 0.124 H 316.7°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#511D62
RGBrgb(81, 29, 98)
HSLhsl(285, 54%, 25%)
HSVhsv(285, 70%, 38%)
CMYKcmyk(17.3%, 70.4%, 0%, 61.6%)
CIE-LABlab(21.98, 35.78, -30.17)
CIE-LCHlch(21.98, 46.81, 319.86°)
OKLaboklab(34.3% 0.0899 -0.0846)
OKLCHoklch(34.3% 0.124 316.7)
XYZxyz(6.0370, 3.5101, 11.9124)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D62 #2E621D
analogous
#2E1D62 #511D62 #621D51
triadic
#511D62 #62511D #1D6251
tetradic
#511D62 #622E1D #2E621D #1D5162
square
#511D62 #622E1D #2E621D #1D5162
split-complementary
#511D62 #51621D #1D622E
monochromatic
#140718 #2A0F33 #511D62 #782B91 #9F39C0

Accessibility & contrast

On white

12.34
#511D62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#511D62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511D62
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D62#FFFFFF#000000##FFFFFF
##511D621.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013164
Deuteranopia (green-blind)
#1E3660
Tritanopia (blue-blind)
#502A3D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511d62;
/* rgb */ color: rgb(81, 29, 98);
/* oklch */ color: oklch(34.3% 0.124 316.7);
Tailwind
colors: {
  custom: {
    50: '#845d8f',
    500: '#511d62',
    950: '#000000',
  },
}
SCSS
$custom: #511d62;
$custom-light: #845d8f;
$custom-dark: #000000;
JSON
{
  "hex": "#511d62",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 98
  },
  "hsl": {
    "h": 285.217,
    "s": 54.331,
    "l": 24.902
  },
  "oklch": {
    "l": 0.34297,
    "c": 0.12351,
    "h": 316.7
  },
  "luminance": 0.0351
}

Semantic roles & 50–950 ramp

primary
#511D62
secondary
#589744
accent
#DE4A6E
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511D62

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

Preview Lab → · Contrast checker → · Palette generator →

#511D62 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva