#511E4F#511E4F

#511E4F is a dark, moderate purple. Relative luminance 0.032; OKLCH L 33.2% C 0.102 H 329.1°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#511E4F
RGBrgb(81, 30, 79)
HSLhsl(302, 46%, 22%)
HSVhsv(302, 63%, 32%)
CMYKcmyk(0%, 63%, 2.5%, 68.2%)
CIE-LABlab(20.99, 31.20, -19.09)
CIE-LCHlch(20.99, 36.58, 328.55°)
OKLaboklab(33.2% 0.0877 -0.0524)
OKLCHoklch(33.2% 0.102 329.1)
XYZxyz(5.2688, 3.2427, 7.7440)
Luminance0.0324 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E4F #1E5120
analogous
#3A1E51 #511E4F #511E36
triadic
#511E4F #4F511E #1E4F51
tetradic
#511E4F #513A1E #1E5120 #1E3651
square
#511E4F #513A1E #1E5120 #1E3651
split-complementary
#511E4F #36511E #1E513A
monochromatic
#160816 #240D23 #511E4F #7E2F7B #AA3FA6

Accessibility & contrast

On white

12.74
#511E4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#511E4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511E4F
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E4F#FFFFFF#000000##FFFFFF
##511E4F1.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2E51
Deuteranopia (green-blind)
#2A354E
Tritanopia (blue-blind)
#542333
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #511e4f;
/* rgb */ color: rgb(81, 30, 79);
/* oklch */ color: oklch(33.2% 0.102 329.1);
Tailwind
colors: {
  custom: {
    50: '#845d80',
    500: '#511e4f',
    950: '#000000',
  },
}
SCSS
$custom: #511e4f;
$custom-light: #845d80;
$custom-dark: #000000;
JSON
{
  "hex": "#511e4f",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 79
  },
  "hsl": {
    "h": 302.353,
    "s": 45.946,
    "l": 21.765
  },
  "oklch": {
    "l": 0.33199,
    "c": 0.1022,
    "h": 329.1
  },
  "luminance": 0.03242
}

Semantic roles & 50–950 ramp

primary
#511E4F
secondary
#458647
accent
#D65752
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #511E4F

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

Preview Lab → · Contrast checker → · Palette generator →

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