#511D66#511D66

#511D66 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.6% C 0.128 H 314.6°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#511D66
RGBrgb(81, 29, 102)
HSLhsl(283, 56%, 26%)
HSVhsv(283, 72%, 40%)
CMYKcmyk(20.6%, 71.6%, 0%, 60%)
CIE-LABlab(22.26, 36.70, -32.35)
CIE-LCHlch(22.26, 48.92, 318.61°)
OKLaboklab(34.59% 0.0897 -0.091)
OKLCHoklch(34.59% 0.128 314.6)
XYZxyz(6.2306, 3.5876, 12.9321)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D66 #32661D
analogous
#2C1D66 #511D66 #661D56
triadic
#511D66 #66511D #1D6651
tetradic
#511D66 #662C1D #32661D #1D5666
square
#511D66 #662C1D #32661D #1D5666
split-complementary
#511D66 #56661D #1D662C
monochromatic
#130718 #2B0F36 #511D66 #772B96 #9D38C5

Accessibility & contrast

On white

12.23
#511D66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#511D66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511D66
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D66#FFFFFF#000000##FFFFFF
##511D661.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003268
Deuteranopia (green-blind)
#1A3764
Tritanopia (blue-blind)
#4F2B3F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511d66;
/* rgb */ color: rgb(81, 29, 102);
/* oklch */ color: oklch(34.6% 0.128 314.6);
Tailwind
colors: {
  custom: {
    50: '#855e92',
    500: '#511d66',
    950: '#000000',
  },
}
SCSS
$custom: #511d66;
$custom-light: #855e92;
$custom-dark: #000000;
JSON
{
  "hex": "#511d66",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 102
  },
  "hsl": {
    "h": 282.74,
    "s": 55.725,
    "l": 25.686
  },
  "oklch": {
    "l": 0.34585,
    "c": 0.1278,
    "h": 314.6
  },
  "luminance": 0.03587
}

Semantic roles & 50–950 ramp

primary
#511D66
secondary
#5D9B44
accent
#DF4974
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #511D66

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

Preview Lab → · Contrast checker → · Palette generator →

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