#511D5E#511D5E

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

Color values

HEX#511D5E
RGBrgb(81, 29, 94)
HSLhsl(288, 53%, 24%)
HSVhsv(288, 69%, 37%)
CMYKcmyk(13.8%, 69.1%, 0%, 63.1%)
CIE-LABlab(21.71, 34.89, -27.96)
CIE-LCHlch(21.71, 44.71, 321.29°)
OKLaboklab(34.02% 0.0901 -0.0782)
OKLCHoklch(34.02% 0.119 319)
XYZxyz(5.8528, 3.4365, 10.9425)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D5E #2A5E1D
analogous
#311D5E #511D5E #5E1D4B
triadic
#511D5E #5E511D #1D5E51
tetradic
#511D5E #5E311D #2A5E1D #1D4B5E
square
#511D5E #5E311D #2A5E1D #1D4B5E
split-complementary
#511D5E #4B5E1D #1D5E31
monochromatic
#140717 #290F2F #511D5E #792B8D #A23ABC

Accessibility & contrast

On white

12.45
#511D5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#511D5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511D5E
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D5E#FFFFFF#000000##FFFFFF
##511D5E1.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#083160
Deuteranopia (green-blind)
#21365C
Tritanopia (blue-blind)
#51283A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #511d5e;
/* rgb */ color: rgb(81, 29, 94);
/* oklch */ color: oklch(34.0% 0.119 319.0);
Tailwind
colors: {
  custom: {
    50: '#845d8c',
    500: '#511d5e',
    950: '#000000',
  },
}
SCSS
$custom: #511d5e;
$custom-light: #845d8c;
$custom-dark: #000000;
JSON
{
  "hex": "#511d5e",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 94
  },
  "hsl": {
    "h": 288,
    "s": 52.846,
    "l": 24.118
  },
  "oklch": {
    "l": 0.34018,
    "c": 0.11926,
    "h": 319
  },
  "luminance": 0.03436
}

Semantic roles & 50–950 ramp

primary
#511D5E
secondary
#549344
accent
#DC4C68
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511D5E

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

Preview Lab → · Contrast checker → · Palette generator →

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