#511E5D#511E5D

#511E5D is a dark, moderate purple. Relative luminance 0.035; OKLCH L 34.1% C 0.117 H 319.5°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#511E5D
RGBrgb(81, 30, 93)
HSLhsl(289, 51%, 24%)
HSVhsv(289, 68%, 36%)
CMYKcmyk(12.9%, 67.7%, 0%, 63.5%)
CIE-LABlab(21.83, 34.16, -27.11)
CIE-LCHlch(21.83, 43.61, 321.56°)
OKLaboklab(34.08% 0.0887 -0.0757)
OKLCHoklch(34.08% 0.117 319.5)
XYZxyz(5.8331, 3.4685, 10.7160)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E5D #2A5D1E
analogous
#321E5D #511E5D #5D1E4A
triadic
#511E5D #5D511E #1E5D51
tetradic
#511E5D #5D321E #2A5D1E #1E4A5D
square
#511E5D #5D321E #2A5D1E #1E4A5D
split-complementary
#511E5D #4A5D1E #1E5D32
monochromatic
#140717 #290F2F #511E5D #792D8B #A23CBA

Accessibility & contrast

On white

12.40
#511E5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511E5D
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E5D#FFFFFF#000000##FFFFFF
##511E5D1.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C315F
Deuteranopia (green-blind)
#23365B
Tritanopia (blue-blind)
#51293A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #511e5d;
/* rgb */ color: rgb(81, 30, 93);
/* oklch */ color: oklch(34.1% 0.117 319.5);
Tailwind
colors: {
  custom: {
    50: '#845e8b',
    500: '#511e5d',
    950: '#000000',
  },
}
SCSS
$custom: #511e5d;
$custom-light: #845e8b;
$custom-dark: #000000;
JSON
{
  "hex": "#511e5d",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 93
  },
  "hsl": {
    "h": 288.571,
    "s": 51.22,
    "l": 24.118
  },
  "oklch": {
    "l": 0.34081,
    "c": 0.11664,
    "h": 319.5
  },
  "luminance": 0.03468
}

Semantic roles & 50–950 ramp

primary
#511E5D
secondary
#549245
accent
#DB4D68
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511E5D

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

Preview Lab → · Contrast checker → · Palette generator →

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