#511F5D#511F5D

#511F5D is a dark, moderate purple. Relative luminance 0.035; OKLCH L 34.2% C 0.115 H 319.4°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#511F5D
RGBrgb(81, 31, 93)
HSLhsl(288, 50%, 24%)
HSVhsv(288, 67%, 36%)
CMYKcmyk(12.9%, 66.7%, 0%, 63.5%)
CIE-LABlab(22.02, 33.65, -26.82)
CIE-LCHlch(22.02, 43.03, 321.45°)
OKLaboklab(34.22% 0.0874 -0.0749)
OKLCHoklch(34.22% 0.115 319.4)
XYZxyz(5.8589, 3.5199, 10.7246)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F5D #2B5D1F
analogous
#321F5D #511F5D #5D1F4A
triadic
#511F5D #5D511F #1F5D51
tetradic
#511F5D #5D321F #2B5D1F #1F4A5D
square
#511F5D #5D321F #2B5D1F #1F4A5D
split-complementary
#511F5D #4A5D1F #1F5D32
monochromatic
#140817 #29102F #511F5D #792E8B #A13EB9

Accessibility & contrast

On white

12.32
#511F5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#511F5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F5D
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F5D#FFFFFF#000000##FFFFFF
##511F5D1.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E315F
Deuteranopia (green-blind)
#23365B
Tritanopia (blue-blind)
#51293B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511f5d;
/* rgb */ color: rgb(81, 31, 93);
/* oklch */ color: oklch(34.2% 0.115 319.4);
Tailwind
colors: {
  custom: {
    50: '#845e8b',
    500: '#511f5d',
    950: '#000000',
  },
}
SCSS
$custom: #511f5d;
$custom-light: #845e8b;
$custom-dark: #000000;
JSON
{
  "hex": "#511f5d",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 93
  },
  "hsl": {
    "h": 288.387,
    "s": 50,
    "l": 24.314
  },
  "oklch": {
    "l": 0.34216,
    "c": 0.11505,
    "h": 319.4
  },
  "luminance": 0.0352
}

Semantic roles & 50–950 ramp

primary
#511F5D
secondary
#559246
accent
#DA4E69
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #511F5D

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

Preview Lab → · Contrast checker → · Palette generator →

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