#511C69#511C69

#511C69 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.7% C 0.132 H 313.2°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#511C69
RGBrgb(81, 28, 105)
HSLhsl(281, 58%, 26%)
HSVhsv(281, 73%, 41%)
CMYKcmyk(22.9%, 73.3%, 0%, 58.8%)
CIE-LABlab(22.30, 37.87, -34.23)
CIE-LCHlch(22.30, 51.05, 317.89°)
OKLaboklab(34.69% 0.0906 -0.0965)
OKLCHoklch(34.69% 0.132 313.2)
XYZxyz(6.3579, 3.6000, 13.7218)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C69 #34691C
analogous
#2A1C69 #511C69 #691C5A
triadic
#511C69 #69511C #1C6951
tetradic
#511C69 #692A1C #34691C #1C5A69
square
#511C69 #692A1C #34691C #1C5A69
split-complementary
#511C69 #5A691C #1C692A
monochromatic
#130618 #2C0F39 #511C69 #762999 #9B36C9

Accessibility & contrast

On white

12.21
#511C69 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#511C69 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511C69
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C69#FFFFFF#000000##FFFFFF
##511C691.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336B
Deuteranopia (green-blind)
#163767
Tritanopia (blue-blind)
#4E2C40
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511c69;
/* rgb */ color: rgb(81, 28, 105);
/* oklch */ color: oklch(34.7% 0.132 313.2);
Tailwind
colors: {
  custom: {
    50: '#855d94',
    500: '#511c69',
    950: '#000000',
  },
}
SCSS
$custom: #511c69;
$custom-light: #855d94;
$custom-dark: #000000;
JSON
{
  "hex": "#511c69",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 105
  },
  "hsl": {
    "h": 281.299,
    "s": 57.895,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34685,
    "c": 0.13243,
    "h": 313.2
  },
  "luminance": 0.036
}

Semantic roles & 50–950 ramp

primary
#511C69
secondary
#5F9E43
accent
#E14777
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #511C69

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

Preview Lab → · Contrast checker → · Palette generator →

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