#511C5E#511C5E

#511C5E is a dark, vivid purple. Relative luminance 0.034; OKLCH L 33.9% C 0.121 H 319.1°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#511C5E
RGBrgb(81, 28, 94)
HSLhsl(288, 54%, 24%)
HSVhsv(288, 70%, 37%)
CMYKcmyk(13.8%, 70.2%, 0%, 63.1%)
CIE-LABlab(21.54, 35.38, -28.25)
CIE-LCHlch(21.54, 45.27, 321.40°)
OKLaboklab(33.89% 0.0914 -0.079)
OKLCHoklch(33.89% 0.121 319.1)
XYZxyz(5.8287, 3.3883, 10.9345)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C5E #295E1C
analogous
#301C5E #511C5E #5E1C4A
triadic
#511C5E #5E511C #1C5E51
tetradic
#511C5E #5E301C #295E1C #1C4A5E
square
#511C5E #5E301C #295E1C #1C4A5E
split-complementary
#511C5E #4A5E1C #1C5E30
monochromatic
#140718 #280E2F #511C5E #7A2A8D #A238BC

Accessibility & contrast

On white

12.52
#511C5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#511C5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511C5E
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C5E#FFFFFF#000000##FFFFFF
##511C5E1.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063060
Deuteranopia (green-blind)
#20355C
Tritanopia (blue-blind)
#51283A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #511c5e;
/* rgb */ color: rgb(81, 28, 94);
/* oklch */ color: oklch(33.9% 0.121 319.1);
Tailwind
colors: {
  custom: {
    50: '#845d8c',
    500: '#511c5e',
    950: '#000000',
  },
}
SCSS
$custom: #511c5e;
$custom-light: #845d8c;
$custom-dark: #000000;
JSON
{
  "hex": "#511c5e",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 94
  },
  "hsl": {
    "h": 288.182,
    "s": 54.098,
    "l": 23.922
  },
  "oklch": {
    "l": 0.3389,
    "c": 0.12078,
    "h": 319.1
  },
  "luminance": 0.03388
}

Semantic roles & 50–950 ramp

primary
#511C5E
secondary
#529342
accent
#DD4A67
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511C5E

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

Preview Lab → · Contrast checker → · Palette generator →

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