#511D6D#511D6D

#511D6D is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.135 H 311.1°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#511D6D
RGBrgb(81, 29, 109)
HSLhsl(279, 58%, 27%)
HSVhsv(279, 73%, 43%)
CMYKcmyk(25.7%, 73.4%, 0%, 57.3%)
CIE-LABlab(22.77, 38.34, -36.08)
CIE-LCHlch(22.77, 52.65, 316.74°)
OKLaboklab(35.11% 0.089 -0.102)
OKLCHoklch(35.11% 0.135 311.1)
XYZxyz(6.5925, 3.7323, 14.8382)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D6D #396D1D
analogous
#291D6D #511D6D #6D1D61
triadic
#511D6D #6D511D #1D6D51
tetradic
#511D6D #6D291D #396D1D #1D616D
square
#511D6D #6D291D #396D1D #1D616D
split-complementary
#511D6D #616D1D #1D6D29
monochromatic
#120618 #2D103D #511D6D #752A9D #983ACB

Accessibility & contrast

On white

12.02
#511D6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#511D6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511D6D
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D6D#FFFFFF#000000##FFFFFF
##511D6D1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511d6d;
/* rgb */ color: rgb(81, 29, 109);
/* oklch */ color: oklch(35.1% 0.135 311.1);
Tailwind
colors: {
  custom: {
    50: '#855e97',
    500: '#511d6d',
    950: '#000000',
  },
}
SCSS
$custom: #511d6d;
$custom-light: #855e97;
$custom-dark: #000000;
JSON
{
  "hex": "#511d6d",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 109
  },
  "hsl": {
    "h": 279,
    "s": 57.971,
    "l": 27.059
  },
  "oklch": {
    "l": 0.3511,
    "c": 0.13536,
    "h": 311.1
  },
  "luminance": 0.03732
}

Semantic roles & 50–950 ramp

primary
#511D6D
secondary
#65A244
accent
#E1477D
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #511D6D

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

Preview Lab → · Contrast checker → · Palette generator →

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