#511C5F#511C5F

#511C5F is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.0% C 0.122 H 318.6°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#511C5F
RGBrgb(81, 28, 95)
HSLhsl(287, 54%, 24%)
HSVhsv(287, 71%, 37%)
CMYKcmyk(14.7%, 70.5%, 0%, 62.7%)
CIE-LABlab(21.60, 35.60, -28.80)
CIE-LCHlch(21.60, 45.79, 321.03°)
OKLaboklab(33.96% 0.0913 -0.0806)
OKLCHoklch(33.96% 0.122 318.6)
XYZxyz(5.8739, 3.4063, 11.1723)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C5F #2A5F1C
analogous
#301C5F #511C5F #5F1C4C
triadic
#511C5F #5F511C #1C5F51
tetradic
#511C5F #5F301C #2A5F1C #1C4C5F
square
#511C5F #5F301C #2A5F1C #1C4C5F
split-complementary
#511C5F #4C5F1C #1C5F30
monochromatic
#140718 #290E30 #511C5F #792A8E #A238BE

Accessibility & contrast

On white

12.49
#511C5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511C5F
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C5F#FFFFFF#000000##FFFFFF
##511C5F1.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#043061
Deuteranopia (green-blind)
#20365D
Tritanopia (blue-blind)
#51283B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #511c5f;
/* rgb */ color: rgb(81, 28, 95);
/* oklch */ color: oklch(34.0% 0.122 318.6);
Tailwind
colors: {
  custom: {
    50: '#845d8d',
    500: '#511c5f',
    950: '#000000',
  },
}
SCSS
$custom: #511c5f;
$custom-light: #845d8d;
$custom-dark: #000000;
JSON
{
  "hex": "#511c5f",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 95
  },
  "hsl": {
    "h": 287.463,
    "s": 54.472,
    "l": 24.118
  },
  "oklch": {
    "l": 0.3396,
    "c": 0.12183,
    "h": 318.6
  },
  "luminance": 0.03406
}

Semantic roles & 50–950 ramp

primary
#511C5F
secondary
#549442
accent
#DE4A69
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511C5F

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

Preview Lab → · Contrast checker → · Palette generator →

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