#511A5C#511A5C

#511A5C is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.5% C 0.122 H 320.5°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#511A5C
RGBrgb(81, 26, 92)
HSLhsl(290, 56%, 23%)
HSVhsv(290, 72%, 36%)
CMYKcmyk(12%, 71.7%, 0%, 63.9%)
CIE-LABlab(21.06, 35.90, -27.68)
CIE-LCHlch(21.06, 45.33, 322.37°)
OKLaboklab(33.51% 0.0939 -0.0773)
OKLCHoklch(33.51% 0.122 320.5)
XYZxyz(5.6943, 3.2611, 10.4527)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A5C #255C1A
analogous
#301A5C #511A5C #5C1A46
triadic
#511A5C #5C511A #1A5C51
tetradic
#511A5C #5C301A #255C1A #1A465C
square
#511A5C #5C301A #255C1A #1A465C
split-complementary
#511A5C #465C1A #1A5C30
monochromatic
#150718 #270D2C #511A5C #7B278C #A535BB

Accessibility & contrast

On white

12.71
#511A5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#511A5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511A5C
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A5C#FFFFFF#000000##FFFFFF
##511A5C1.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052F5E
Deuteranopia (green-blind)
#20355A
Tritanopia (blue-blind)
#522638
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511a5c;
/* rgb */ color: rgb(81, 26, 92);
/* oklch */ color: oklch(33.5% 0.122 320.5);
Tailwind
colors: {
  custom: {
    50: '#845c8a',
    500: '#511a5c',
    950: '#000000',
  },
}
SCSS
$custom: #511a5c;
$custom-light: #845c8a;
$custom-dark: #000000;
JSON
{
  "hex": "#511a5c",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 92
  },
  "hsl": {
    "h": 290,
    "s": 55.932,
    "l": 23.137
  },
  "oklch": {
    "l": 0.33505,
    "c": 0.12168,
    "h": 320.5
  },
  "luminance": 0.03261
}

Semantic roles & 50–950 ramp

primary
#511A5C
secondary
#4E9240
accent
#DF4962
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511A5C

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

Preview Lab → · Contrast checker → · Palette generator →

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