#511D68#511D68

#511D68 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.7% C 0.130 H 313.6°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#511D68
RGBrgb(81, 29, 104)
HSLhsl(282, 56%, 26%)
HSVhsv(282, 72%, 41%)
CMYKcmyk(22.1%, 72.1%, 0%, 59.2%)
CIE-LABlab(22.40, 37.16, -33.42)
CIE-LCHlch(22.40, 49.98, 318.03°)
OKLaboklab(34.73% 0.0895 -0.0942)
OKLCHoklch(34.73% 0.13 313.6)
XYZxyz(6.3310, 3.6277, 13.4607)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D68 #34681D
analogous
#2B1D68 #511D68 #681D59
triadic
#511D68 #68511D #1D6851
tetradic
#511D68 #682B1D #34681D #1D5968
square
#511D68 #682B1D #34681D #1D5968
split-complementary
#511D68 #59681D #1D682B
monochromatic
#130718 #2C1038 #511D68 #762A98 #9B38C7

Accessibility & contrast

On white

12.17
#511D68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#511D68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511D68
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D68#FFFFFF#000000##FFFFFF
##511D681.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336A
Deuteranopia (green-blind)
#183766
Tritanopia (blue-blind)
#4F2C40
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #511d68;
/* rgb */ color: rgb(81, 29, 104);
/* oklch */ color: oklch(34.7% 0.130 313.6);
Tailwind
colors: {
  custom: {
    50: '#855e94',
    500: '#511d68',
    950: '#000000',
  },
}
SCSS
$custom: #511d68;
$custom-light: #855e94;
$custom-dark: #000000;
JSON
{
  "hex": "#511d68",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 104
  },
  "hsl": {
    "h": 281.6,
    "s": 56.391,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34732,
    "c": 0.12995,
    "h": 313.6
  },
  "luminance": 0.03628
}

Semantic roles & 50–950 ramp

primary
#511D68
secondary
#5F9D44
accent
#E04877
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #511D68

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

Preview Lab → · Contrast checker → · Palette generator →

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