#511D5C#511D5C

#511D5C is a dark, moderate purple. Relative luminance 0.034; OKLCH L 33.9% C 0.117 H 320.2°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#511D5C
RGBrgb(81, 29, 92)
HSLhsl(290, 52%, 24%)
HSVhsv(290, 68%, 36%)
CMYKcmyk(12%, 68.5%, 0%, 63.9%)
CIE-LABlab(21.58, 34.45, -26.85)
CIE-LCHlch(21.58, 43.67, 322.07°)
OKLaboklab(33.88% 0.0901 -0.0749)
OKLCHoklch(33.88% 0.117 320.2)
XYZxyz(5.7642, 3.4010, 10.4760)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D5C #285C1D
analogous
#311D5C #511D5C #5C1D47
triadic
#511D5C #5C511D #1D5C51
tetradic
#511D5C #5C311D #285C1D #1D475C
square
#511D5C #5C311D #285C1D #1D475C
split-complementary
#511D5C #475C1D #1D5C31
monochromatic
#140717 #280E2D #511D5C #7A2C8B #A33AB9

Accessibility & contrast

On white

12.50
#511D5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511D5C
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D5C#FFFFFF#000000##FFFFFF
##511D5C1.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C305E
Deuteranopia (green-blind)
#23365A
Tritanopia (blue-blind)
#512839
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #511d5c;
/* rgb */ color: rgb(81, 29, 92);
/* oklch */ color: oklch(33.9% 0.117 320.2);
Tailwind
colors: {
  custom: {
    50: '#845d8a',
    500: '#511d5c',
    950: '#000000',
  },
}
SCSS
$custom: #511d5c;
$custom-light: #845d8a;
$custom-dark: #000000;
JSON
{
  "hex": "#511d5c",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 92
  },
  "hsl": {
    "h": 289.524,
    "s": 52.066,
    "l": 23.725
  },
  "oklch": {
    "l": 0.33882,
    "c": 0.11715,
    "h": 320.2
  },
  "luminance": 0.03401
}

Semantic roles & 50–950 ramp

primary
#511D5C
secondary
#519144
accent
#DC4C65
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511D5C

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

Preview Lab → · Contrast checker → · Palette generator →

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