#511D69#511D69

#511D69 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.8% C 0.131 H 313.1°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#511D69
RGBrgb(81, 29, 105)
HSLhsl(281, 57%, 26%)
HSVhsv(281, 72%, 41%)
CMYKcmyk(22.9%, 72.4%, 0%, 58.8%)
CIE-LABlab(22.47, 37.40, -33.96)
CIE-LCHlch(22.47, 50.51, 317.76°)
OKLaboklab(34.81% 0.0895 -0.0957)
OKLCHoklch(34.81% 0.131 313.1)
XYZxyz(6.3821, 3.6482, 13.7298)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D69 #35691D
analogous
#2B1D69 #511D69 #691D5B
triadic
#511D69 #69511D #1D6951
tetradic
#511D69 #692B1D #35691D #1D5B69
square
#511D69 #692B1D #35691D #1D5B69
split-complementary
#511D69 #5B691D #1D692B
monochromatic
#120718 #2C1039 #511D69 #762A99 #9B38C8

Accessibility & contrast

On white

12.14
#511D69 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511D69
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D69#FFFFFF#000000##FFFFFF
##511D691.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336B
Deuteranopia (green-blind)
#173767
Tritanopia (blue-blind)
#4E2D40
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #511d69;
/* rgb */ color: rgb(81, 29, 105);
/* oklch */ color: oklch(34.8% 0.131 313.1);
Tailwind
colors: {
  custom: {
    50: '#855e94',
    500: '#511d69',
    950: '#000000',
  },
}
SCSS
$custom: #511d69;
$custom-light: #855e94;
$custom-dark: #000000;
JSON
{
  "hex": "#511d69",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 105
  },
  "hsl": {
    "h": 281.053,
    "s": 56.716,
    "l": 26.275
  },
  "oklch": {
    "l": 0.34807,
    "c": 0.13103,
    "h": 313.1
  },
  "luminance": 0.03648
}

Semantic roles & 50–950 ramp

primary
#511D69
secondary
#609E44
accent
#E04878
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #511D69

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

Preview Lab → · Contrast checker → · Palette generator →

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