#511E56#511E56

#511E56 is a dark, moderate purple. Relative luminance 0.034; OKLCH L 33.6% C 0.109 H 324.0°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#511E56
RGBrgb(81, 30, 86)
HSLhsl(295, 48%, 23%)
HSVhsv(295, 65%, 34%)
CMYKcmyk(5.8%, 65.1%, 0%, 66.3%)
CIE-LABlab(21.39, 32.65, -23.15)
CIE-LCHlch(21.39, 40.02, 324.66°)
OKLaboklab(33.63% 0.0884 -0.0642)
OKLCHoklch(33.63% 0.109 324)
XYZxyz(5.5372, 3.3501, 9.1573)
Luminance0.0335 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E56 #23561E
analogous
#351E56 #511E56 #561E3F
triadic
#511E56 #56511E #1E5651
tetradic
#511E56 #56351E #23561E #1E3F56
square
#511E56 #56351E #23561E #1E3F56
split-complementary
#511E56 #3F561E #1E5635
monochromatic
#150817 #260E29 #511E56 #7C2E83 #A63EB1

Accessibility & contrast

On white

12.57
#511E56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#511E56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511E56
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E56#FFFFFF#000000##FFFFFF
##511E561.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142F58
Deuteranopia (green-blind)
#273555
Tritanopia (blue-blind)
#532637
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511e56;
/* rgb */ color: rgb(81, 30, 86);
/* oklch */ color: oklch(33.6% 0.109 324.0);
Tailwind
colors: {
  custom: {
    50: '#845e86',
    500: '#511e56',
    950: '#000000',
  },
}
SCSS
$custom: #511e56;
$custom-light: #845e86;
$custom-dark: #000000;
JSON
{
  "hex": "#511e56",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 86
  },
  "hsl": {
    "h": 294.643,
    "s": 48.276,
    "l": 22.745
  },
  "oklch": {
    "l": 0.33625,
    "c": 0.10929,
    "h": 324
  },
  "luminance": 0.0335
}

Semantic roles & 50–950 ramp

primary
#511E56
secondary
#4B8B45
accent
#D8505C
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511E56

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

Preview Lab → · Contrast checker → · Palette generator →

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