#511C5A#511C5A

#511C5A is a dark, moderate purple. Relative luminance 0.033; OKLCH L 33.6% C 0.117 H 321.6°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#511C5A
RGBrgb(81, 28, 90)
HSLhsl(291, 53%, 23%)
HSVhsv(291, 69%, 35%)
CMYKcmyk(10%, 68.9%, 0%, 64.7%)
CIE-LABlab(21.28, 34.51, -26.01)
CIE-LCHlch(21.28, 43.21, 323.00°)
OKLaboklab(33.62% 0.0914 -0.0725)
OKLCHoklch(33.62% 0.117 321.6)
XYZxyz(5.6539, 3.3183, 10.0136)
Luminance0.0332 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C5A #255A1C
analogous
#321C5A #511C5A #5A1C44
triadic
#511C5A #5A511C #1C5A51
tetradic
#511C5A #5A321C #255A1C #1C445A
square
#511C5A #5A321C #255A1C #1C445A
split-complementary
#511C5A #445A1C #1C5A32
monochromatic
#150717 #270D2B #511C5A #7B2B89 #A539B7

Accessibility & contrast

On white

12.62
#511C5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#511C5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511C5A
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C5A#FFFFFF#000000##FFFFFF
##511C5A1.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2F5C
Deuteranopia (green-blind)
#233558
Tritanopia (blue-blind)
#522638
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511c5a;
/* rgb */ color: rgb(81, 28, 90);
/* oklch */ color: oklch(33.6% 0.117 321.6);
Tailwind
colors: {
  custom: {
    50: '#845d89',
    500: '#511c5a',
    950: '#000000',
  },
}
SCSS
$custom: #511c5a;
$custom-light: #845d89;
$custom-dark: #000000;
JSON
{
  "hex": "#511c5a",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 90
  },
  "hsl": {
    "h": 291.29,
    "s": 52.542,
    "l": 23.137
  },
  "oklch": {
    "l": 0.33619,
    "c": 0.11662,
    "h": 321.6
  },
  "luminance": 0.03318
}

Semantic roles & 50–950 ramp

primary
#511C5A
secondary
#4E8F42
accent
#DC4C61
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511C5A

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

Preview Lab → · Contrast checker → · Palette generator →

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