#511E5F#511E5F

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

Color values

HEX#511E5F
RGBrgb(81, 30, 95)
HSLhsl(287, 52%, 25%)
HSVhsv(287, 68%, 37%)
CMYKcmyk(14.7%, 68.4%, 0%, 62.7%)
CIE-LABlab(21.96, 34.61, -28.23)
CIE-LCHlch(21.96, 44.66, 320.80°)
OKLaboklab(34.22% 0.0887 -0.079)
OKLCHoklch(34.22% 0.119 318.3)
XYZxyz(5.9229, 3.5044, 11.1887)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E5F #2C5F1E
analogous
#311E5F #511E5F #5F1E4D
triadic
#511E5F #5F511E #1E5F51
tetradic
#511E5F #5F311E #2C5F1E #1E4D5F
square
#511E5F #5F311E #2C5F1E #1E4D5F
split-complementary
#511E5F #4D5F1E #1E5F31
monochromatic
#140717 #290F30 #511E5F #792D8E #A03BBC

Accessibility & contrast

On white

12.35
#511E5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511E5F
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E5F#FFFFFF#000000##FFFFFF
##511E5F1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#093161
Deuteranopia (green-blind)
#21365D
Tritanopia (blue-blind)
#51293B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511e5f;
/* rgb */ color: rgb(81, 30, 95);
/* oklch */ color: oklch(34.2% 0.119 318.3);
Tailwind
colors: {
  custom: {
    50: '#845e8d',
    500: '#511e5f',
    950: '#000000',
  },
}
SCSS
$custom: #511e5f;
$custom-light: #845e8d;
$custom-dark: #000000;
JSON
{
  "hex": "#511e5f",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 95
  },
  "hsl": {
    "h": 287.077,
    "s": 52,
    "l": 24.51
  },
  "oklch": {
    "l": 0.34217,
    "c": 0.11878,
    "h": 318.3
  },
  "luminance": 0.03504
}

Semantic roles & 50–950 ramp

primary
#511E5F
secondary
#569445
accent
#DB4C6B
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511E5F

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

Preview Lab → · Contrast checker → · Palette generator →

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