#511C6D#511C6D

#511C6D is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.0% C 0.137 H 311.3°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#511C6D
RGBrgb(81, 28, 109)
HSLhsl(279, 59%, 27%)
HSVhsv(279, 74%, 43%)
CMYKcmyk(25.7%, 74.3%, 0%, 57.3%)
CIE-LABlab(22.60, 38.81, -36.35)
CIE-LCHlch(22.60, 53.18, 316.87°)
OKLaboklab(34.99% 0.0902 -0.1028)
OKLCHoklch(34.99% 0.137 311.3)
XYZxyz(6.5684, 3.6841, 14.8301)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C6D #386D1C
analogous
#291C6D #511C6D #6D1C61
triadic
#511C6D #6D511C #1C6D51
tetradic
#511C6D #6D291C #386D1C #1C616D
square
#511C6D #6D291C #386D1C #1C616D
split-complementary
#511C6D #616D1C #1C6D29
monochromatic
#120618 #2D0F3C #511C6D #75299E #9938CC

Accessibility & contrast

On white

12.09
#511C6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#511C6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511C6D
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C6D#FFFFFF#000000##FFFFFF
##511C6D1.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346F
Deuteranopia (green-blind)
#10376B
Tritanopia (blue-blind)
#4D2E42
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #511c6d;
/* rgb */ color: rgb(81, 28, 109);
/* oklch */ color: oklch(35.0% 0.137 311.3);
Tailwind
colors: {
  custom: {
    50: '#855d97',
    500: '#511c6d',
    950: '#000000',
  },
}
SCSS
$custom: #511c6d;
$custom-light: #855d97;
$custom-dark: #000000;
JSON
{
  "hex": "#511c6d",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 109
  },
  "hsl": {
    "h": 279.259,
    "s": 59.124,
    "l": 26.863
  },
  "oklch": {
    "l": 0.34991,
    "c": 0.13671,
    "h": 311.3
  },
  "luminance": 0.03684
}

Semantic roles & 50–950 ramp

primary
#511C6D
secondary
#64A243
accent
#E2457C
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #511C6D

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

Preview Lab → · Contrast checker → · Palette generator →

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