#511E4B#511E4B

#511E4B is a dark, moderate purple. Relative luminance 0.032; OKLCH L 33.0% C 0.098 H 332.3°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#511E4B
RGBrgb(81, 30, 75)
HSLhsl(307, 46%, 22%)
HSVhsv(307, 63%, 32%)
CMYKcmyk(0%, 63%, 7.4%, 68.2%)
CIE-LABlab(20.77, 30.42, -16.72)
CIE-LCHlch(20.77, 34.71, 331.21°)
OKLaboklab(32.97% 0.0871 -0.0457)
OKLCHoklch(32.97% 0.098 332.3)
XYZxyz(5.1276, 3.1862, 7.0002)
Luminance0.0319 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E4B #1E5124
analogous
#3E1E51 #511E4B #511E32
triadic
#511E4B #4B511E #1E4B51
tetradic
#511E4B #513E1E #1E5124 #1E3251
square
#511E4B #513E1E #1E5124 #1E3251
split-complementary
#511E4B #32511E #1E513E
monochromatic
#160815 #240D22 #511E4B #7E2F74 #AA3F9E

Accessibility & contrast

On white

12.83
#511E4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#511E4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511E4B
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E4B#FFFFFF#000000##FFFFFF
##511E4B1.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C2D4C
Deuteranopia (green-blind)
#2C354A
Tritanopia (blue-blind)
#542231
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #511e4b;
/* rgb */ color: rgb(81, 30, 75);
/* oklch */ color: oklch(33.0% 0.098 332.3);
Tailwind
colors: {
  custom: {
    50: '#845d7d',
    500: '#511e4b',
    950: '#000000',
  },
}
SCSS
$custom: #511e4b;
$custom-light: #845d7d;
$custom-dark: #000000;
JSON
{
  "hex": "#511e4b",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 75
  },
  "hsl": {
    "h": 307.059,
    "s": 45.946,
    "l": 21.765
  },
  "oklch": {
    "l": 0.3297,
    "c": 0.09835,
    "h": 332.3
  },
  "luminance": 0.03186
}

Semantic roles & 50–950 ramp

primary
#511E4B
secondary
#45864C
accent
#D66252
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B0409
muted
#7C797B

Preview Lab

Preview with #511E4B

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

Preview Lab → · Contrast checker → · Palette generator →

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