#511E5E#511E5E

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

Color values

HEX#511E5E
RGBrgb(81, 30, 94)
HSLhsl(288, 52%, 24%)
HSVhsv(288, 68%, 37%)
CMYKcmyk(13.8%, 68.1%, 0%, 63.1%)
CIE-LABlab(21.89, 34.38, -27.67)
CIE-LCHlch(21.89, 44.14, 321.17°)
OKLaboklab(34.15% 0.0887 -0.0773)
OKLCHoklch(34.15% 0.118 318.9)
XYZxyz(5.8777, 3.4863, 10.9508)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E5E #2B5E1E
analogous
#311E5E #511E5E #5E1E4B
triadic
#511E5E #5E511E #1E5E51
tetradic
#511E5E #5E311E #2B5E1E #1E4B5E
square
#511E5E #5E311E #2B5E1E #1E4B5E
split-complementary
#511E5E #4B5E1E #1E5E31
monochromatic
#140717 #290F30 #511E5E #792D8C #A13CBB

Accessibility & contrast

On white

12.37
#511E5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511E5E
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E5E#FFFFFF#000000##FFFFFF
##511E5E1.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B3160
Deuteranopia (green-blind)
#22365C
Tritanopia (blue-blind)
#51293B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #511e5e;
/* rgb */ color: rgb(81, 30, 94);
/* oklch */ color: oklch(34.1% 0.118 318.9);
Tailwind
colors: {
  custom: {
    50: '#845e8c',
    500: '#511e5e',
    950: '#000000',
  },
}
SCSS
$custom: #511e5e;
$custom-light: #845e8c;
$custom-dark: #000000;
JSON
{
  "hex": "#511e5e",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 94
  },
  "hsl": {
    "h": 287.813,
    "s": 51.613,
    "l": 24.314
  },
  "oklch": {
    "l": 0.34149,
    "c": 0.1177,
    "h": 318.9
  },
  "luminance": 0.03486
}

Semantic roles & 50–950 ramp

primary
#511E5E
secondary
#559345
accent
#DB4D6A
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511E5E

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

Preview Lab → · Contrast checker → · Palette generator →

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