#511E5A#511E5A

#511E5A is a dark, moderate purple. Relative luminance 0.034; OKLCH L 33.9% C 0.113 H 321.4°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#511E5A
RGBrgb(81, 30, 90)
HSLhsl(291, 50%, 24%)
HSVhsv(291, 67%, 35%)
CMYKcmyk(10%, 66.7%, 0%, 64.7%)
CIE-LABlab(21.64, 33.51, -25.43)
CIE-LCHlch(21.64, 42.06, 322.80°)
OKLaboklab(33.88% 0.0887 -0.0708)
OKLCHoklch(33.88% 0.113 321.4)
XYZxyz(5.7029, 3.4163, 10.0299)
Luminance0.0342 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E5A #275A1E
analogous
#331E5A #511E5A #5A1E45
triadic
#511E5A #5A511E #1E5A51
tetradic
#511E5A #5A331E #275A1E #1E455A
square
#511E5A #5A331E #275A1E #1E455A
split-complementary
#511E5A #455A1E #1E5A33
monochromatic
#150817 #280F2C #511E5A #7A2D88 #A43DB6

Accessibility & contrast

On white

12.48
#511E5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511E5A
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E5A#FFFFFF#000000##FFFFFF
##511E5A1.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10305C
Deuteranopia (green-blind)
#253658
Tritanopia (blue-blind)
#522739
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #511e5a;
/* rgb */ color: rgb(81, 30, 90);
/* oklch */ color: oklch(33.9% 0.113 321.4);
Tailwind
colors: {
  custom: {
    50: '#845e89',
    500: '#511e5a',
    950: '#000000',
  },
}
SCSS
$custom: #511e5a;
$custom-light: #845e89;
$custom-dark: #000000;
JSON
{
  "hex": "#511e5a",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 90
  },
  "hsl": {
    "h": 291,
    "s": 50,
    "l": 23.529
  },
  "oklch": {
    "l": 0.33882,
    "c": 0.11346,
    "h": 321.4
  },
  "luminance": 0.03416
}

Semantic roles & 50–950 ramp

primary
#511E5A
secondary
#508F45
accent
#DA4E63
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511E5A

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

Preview Lab → · Contrast checker → · Palette generator →

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