#511F56#511F56

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

Color values

HEX#511F56
RGBrgb(81, 31, 86)
HSLhsl(295, 47%, 23%)
HSVhsv(295, 64%, 34%)
CMYKcmyk(5.8%, 64%, 0%, 66.3%)
CIE-LABlab(21.59, 32.12, -22.85)
CIE-LCHlch(21.59, 39.42, 324.57°)
OKLaboklab(33.76% 0.087 -0.0633)
OKLCHoklch(33.76% 0.108 323.9)
XYZxyz(5.5629, 3.4015, 9.1658)
Luminance0.0340 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F56 #24561F
analogous
#351F56 #511F56 #561F3F
triadic
#511F56 #56511F #1F5651
tetradic
#511F56 #56351F #24561F #1F3F56
square
#511F56 #56351F #24561F #1F3F56
split-complementary
#511F56 #3F561F #1F5635
monochromatic
#150816 #270F29 #511F56 #7B2F83 #A63FB0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##511F56#FFFFFF#000000##FFFFFF
##511F561.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)
#163058
Deuteranopia (green-blind)
#283655
Tritanopia (blue-blind)
#532737
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #511f56;
/* rgb */ color: rgb(81, 31, 86);
/* oklch */ color: oklch(33.8% 0.108 323.9);
Tailwind
colors: {
  custom: {
    50: '#845e86',
    500: '#511f56',
    950: '#000000',
  },
}
SCSS
$custom: #511f56;
$custom-light: #845e86;
$custom-dark: #000000;
JSON
{
  "hex": "#511f56",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 86
  },
  "hsl": {
    "h": 294.545,
    "s": 47.009,
    "l": 22.941
  },
  "oklch": {
    "l": 0.33763,
    "c": 0.10761,
    "h": 323.9
  },
  "luminance": 0.03401
}

Semantic roles & 50–950 ramp

primary
#511F56
secondary
#4C8B46
accent
#D7515D
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511F56

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

Preview Lab → · Contrast checker → · Palette generator →

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