#511D5D#511D5D

#511D5D is a dark, moderate purple. Relative luminance 0.034; OKLCH L 34.0% C 0.118 H 319.6°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#511D5D
RGBrgb(81, 29, 93)
HSLhsl(289, 52%, 24%)
HSVhsv(289, 69%, 36%)
CMYKcmyk(12.9%, 68.8%, 0%, 63.5%)
CIE-LABlab(21.65, 34.67, -27.41)
CIE-LCHlch(21.65, 44.19, 321.67°)
OKLaboklab(33.95% 0.0901 -0.0766)
OKLCHoklch(33.95% 0.118 319.6)
XYZxyz(5.8082, 3.4186, 10.7077)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D5D #295D1D
analogous
#311D5D #511D5D #5D1D49
triadic
#511D5D #5D511D #1D5D51
tetradic
#511D5D #5D311D #295D1D #1D495D
square
#511D5D #5D311D #295D1D #1D495D
split-complementary
#511D5D #495D1D #1D5D31
monochromatic
#140717 #280E2E #511D5D #7A2C8C #A23ABA

Accessibility & contrast

On white

12.47
#511D5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#511D5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511D5D
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D5D#FFFFFF#000000##FFFFFF
##511D5D1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A305F
Deuteranopia (green-blind)
#22365B
Tritanopia (blue-blind)
#51283A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #511d5d;
/* rgb */ color: rgb(81, 29, 93);
/* oklch */ color: oklch(34.0% 0.118 319.6);
Tailwind
colors: {
  custom: {
    50: '#845d8b',
    500: '#511d5d',
    950: '#000000',
  },
}
SCSS
$custom: #511d5d;
$custom-light: #845d8b;
$custom-dark: #000000;
JSON
{
  "hex": "#511d5d",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 93
  },
  "hsl": {
    "h": 288.75,
    "s": 52.459,
    "l": 23.922
  },
  "oklch": {
    "l": 0.3395,
    "c": 0.1182,
    "h": 319.6
  },
  "luminance": 0.03418
}

Semantic roles & 50–950 ramp

primary
#511D5D
secondary
#529244
accent
#DC4C67
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511D5D

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

Preview Lab → · Contrast checker → · Palette generator →

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