#511E53#511E53

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

Color values

HEX#511E53
RGBrgb(81, 30, 83)
HSLhsl(298, 47%, 22%)
HSVhsv(298, 64%, 33%)
CMYKcmyk(2.4%, 63.9%, 0%, 67.5%)
CIE-LABlab(21.22, 32.02, -21.42)
CIE-LCHlch(21.22, 38.52, 326.21°)
OKLaboklab(33.44% 0.0882 -0.0592)
OKLCHoklch(33.44% 0.106 326.1)
XYZxyz(5.4188, 3.3027, 8.5340)
Luminance0.0330 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E53 #20531E
analogous
#371E53 #511E53 #531E3B
triadic
#511E53 #53511E #1E5351
tetradic
#511E53 #53371E #20531E #1E3B53
square
#511E53 #53371E #20531E #1E3B53
split-complementary
#511E53 #3B531E #1E5337
monochromatic
#160816 #250E26 #511E53 #7D2E80 #A93EAD

Accessibility & contrast

On white

12.65
#511E53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511E53
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E53#FFFFFF#000000##FFFFFF
##511E531.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172F55
Deuteranopia (green-blind)
#283552
Tritanopia (blue-blind)
#532535
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511e53;
/* rgb */ color: rgb(81, 30, 83);
/* oklch */ color: oklch(33.4% 0.106 326.1);
Tailwind
colors: {
  custom: {
    50: '#845d83',
    500: '#511e53',
    950: '#000000',
  },
}
SCSS
$custom: #511e53;
$custom-light: #845d83;
$custom-dark: #000000;
JSON
{
  "hex": "#511e53",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 83
  },
  "hsl": {
    "h": 297.736,
    "s": 46.903,
    "l": 22.157
  },
  "oklch": {
    "l": 0.33438,
    "c": 0.10621,
    "h": 326.1
  },
  "luminance": 0.03302
}

Semantic roles & 50–950 ramp

primary
#511E53
secondary
#478845
accent
#D75156
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #511E53

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

Preview Lab → · Contrast checker → · Palette generator →

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