#511E54#511E54

#511E54 is a dark, moderate purple. Relative luminance 0.033; OKLCH L 33.5% C 0.107 H 325.4°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#511E54
RGBrgb(81, 30, 84)
HSLhsl(297, 47%, 22%)
HSVhsv(297, 64%, 33%)
CMYKcmyk(3.6%, 64.3%, 0%, 67.1%)
CIE-LABlab(21.28, 32.23, -22.00)
CIE-LCHlch(21.28, 39.02, 325.68°)
OKLaboklab(33.5% 0.0883 -0.0609)
OKLCHoklch(33.5% 0.107 325.4)
XYZxyz(5.4577, 3.3183, 8.7388)
Luminance0.0332 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E54 #21541E
analogous
#361E54 #511E54 #541E3C
triadic
#511E54 #54511E #1E5451
tetradic
#511E54 #54361E #21541E #1E3C54
square
#511E54 #54361E #21541E #1E3C54
split-complementary
#511E54 #3C541E #1E5436
monochromatic
#160817 #260E27 #511E54 #7C2E81 #A83EAE

Accessibility & contrast

On white

12.62
#511E54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511E54
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E54#FFFFFF#000000##FFFFFF
##511E541.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162F56
Deuteranopia (green-blind)
#283553
Tritanopia (blue-blind)
#532536
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511e54;
/* rgb */ color: rgb(81, 30, 84);
/* oklch */ color: oklch(33.5% 0.107 325.4);
Tailwind
colors: {
  custom: {
    50: '#845d84',
    500: '#511e54',
    950: '#000000',
  },
}
SCSS
$custom: #511e54;
$custom-light: #845d84;
$custom-dark: #000000;
JSON
{
  "hex": "#511e54",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 84
  },
  "hsl": {
    "h": 296.667,
    "s": 47.368,
    "l": 22.353
  },
  "oklch": {
    "l": 0.335,
    "c": 0.10723,
    "h": 325.4
  },
  "luminance": 0.03318
}

Semantic roles & 50–950 ramp

primary
#511E54
secondary
#498945
accent
#D75158
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511E54

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

Preview Lab → · Contrast checker → · Palette generator →

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