#511A68#511A68

#511A68 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.4% C 0.134 H 314.0°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#511A68
RGBrgb(81, 26, 104)
HSLhsl(282, 60%, 25%)
HSVhsv(282, 75%, 41%)
CMYKcmyk(22.1%, 75%, 0%, 59.2%)
CIE-LABlab(21.90, 38.57, -34.23)
CIE-LCHlch(21.90, 51.57, 318.41°)
OKLaboklab(34.38% 0.0931 -0.0965)
OKLCHoklch(34.38% 0.134 314)
XYZxyz(6.2610, 3.4878, 13.4374)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A68 #31681A
analogous
#2A1A68 #511A68 #681A58
triadic
#511A68 #68511A #1A6851
tetradic
#511A68 #682A1A #31681A #1A5868
square
#511A68 #682A1A #31681A #1A5868
split-complementary
#511A68 #58681A #1A682A
monochromatic
#130618 #2B0E37 #511A68 #772699 #9D32CA

Accessibility & contrast

On white

12.37
#511A68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511A68
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A68#FFFFFF#000000##FFFFFF
##511A681.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316A
Deuteranopia (green-blind)
#153666
Tritanopia (blue-blind)
#4F2A3F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #511a68;
/* rgb */ color: rgb(81, 26, 104);
/* oklch */ color: oklch(34.4% 0.134 314.0);
Tailwind
colors: {
  custom: {
    50: '#855c94',
    500: '#511a68',
    950: '#000000',
  },
}
SCSS
$custom: #511a68;
$custom-light: #855c94;
$custom-dark: #000000;
JSON
{
  "hex": "#511a68",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 104
  },
  "hsl": {
    "h": 282.308,
    "s": 60,
    "l": 25.49
  },
  "oklch": {
    "l": 0.34375,
    "c": 0.13408,
    "h": 314
  },
  "luminance": 0.03488
}

Semantic roles & 50–950 ramp

primary
#511A68
secondary
#5C9D40
accent
#E34573
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #511A68

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

Preview Lab → · Contrast checker → · Palette generator →

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