#511E52#511E52

#511E52 is a dark, moderate purple. Relative luminance 0.033; OKLCH L 33.4% C 0.105 H 326.9°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#511E52
RGBrgb(81, 30, 82)
HSLhsl(299, 46%, 22%)
HSVhsv(299, 63%, 32%)
CMYKcmyk(1.2%, 63.4%, 0%, 67.8%)
CIE-LABlab(21.16, 31.81, -20.84)
CIE-LCHlch(21.16, 38.03, 326.77°)
OKLaboklab(33.38% 0.0881 -0.0575)
OKLCHoklch(33.38% 0.105 326.9)
XYZxyz(5.3805, 3.2874, 8.3321)
Luminance0.0329 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E52 #1F521E
analogous
#371E52 #511E52 #521E39
triadic
#511E52 #52511E #1E5251
tetradic
#511E52 #52371E #1F521E #1E3952
square
#511E52 #52371E #1F521E #1E3952
split-complementary
#511E52 #39521E #1E5237
monochromatic
#160816 #250E25 #511E52 #7D2E7F #AA3FAC

Accessibility & contrast

On white

12.67
#511E52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#511E52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511E52
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E52#FFFFFF#000000##FFFFFF
##511E521.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182F54
Deuteranopia (green-blind)
#293551
Tritanopia (blue-blind)
#532535
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511e52;
/* rgb */ color: rgb(81, 30, 82);
/* oklch */ color: oklch(33.4% 0.105 326.9);
Tailwind
colors: {
  custom: {
    50: '#845d83',
    500: '#511e52',
    950: '#000000',
  },
}
SCSS
$custom: #511e52;
$custom-light: #845d83;
$custom-dark: #000000;
JSON
{
  "hex": "#511e52",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 82
  },
  "hsl": {
    "h": 298.846,
    "s": 46.429,
    "l": 21.961
  },
  "oklch": {
    "l": 0.33377,
    "c": 0.1052,
    "h": 326.9
  },
  "luminance": 0.03287
}

Semantic roles & 50–950 ramp

primary
#511E52
secondary
#468745
accent
#D65254
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #511E52

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

Preview Lab → · Contrast checker → · Palette generator →

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