#511E6D#511E6D

#511E6D is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.2% C 0.134 H 311.0°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#511E6D
RGBrgb(81, 30, 109)
HSLhsl(279, 57%, 27%)
HSVhsv(279, 72%, 43%)
CMYKcmyk(25.7%, 72.5%, 0%, 57.3%)
CIE-LABlab(22.94, 37.86, -35.81)
CIE-LCHlch(22.94, 52.11, 316.60°)
OKLaboklab(35.23% 0.0878 -0.1012)
OKLCHoklch(35.23% 0.134 311)
XYZxyz(6.6174, 3.7822, 14.8465)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E6D #3A6D1E
analogous
#291E6D #511E6D #6D1E62
triadic
#511E6D #6D511E #1E6D51
tetradic
#511E6D #6D291E #3A6D1E #1E626D
square
#511E6D #6D291E #3A6D1E #1E626D
split-complementary
#511E6D #626D1E #1E6D29
monochromatic
#120718 #2D113D #511E6D #752B9D #973CC9

Accessibility & contrast

On white

11.96
#511E6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#511E6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511E6D
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E6D#FFFFFF#000000##FFFFFF
##511E6D1.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346F
Deuteranopia (green-blind)
#13386B
Tritanopia (blue-blind)
#4D2F43
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #511e6d;
/* rgb */ color: rgb(81, 30, 109);
/* oklch */ color: oklch(35.2% 0.134 311.0);
Tailwind
colors: {
  custom: {
    50: '#855e97',
    500: '#511e6d',
    950: '#000000',
  },
}
SCSS
$custom: #511e6d;
$custom-light: #855e97;
$custom-dark: #000000;
JSON
{
  "hex": "#511e6d",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 109
  },
  "hsl": {
    "h": 278.734,
    "s": 56.835,
    "l": 27.255
  },
  "oklch": {
    "l": 0.35233,
    "c": 0.13399,
    "h": 311
  },
  "luminance": 0.03782
}

Semantic roles & 50–950 ramp

primary
#511E6D
secondary
#66A145
accent
#E0487E
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #511E6D

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

Preview Lab → · Contrast checker → · Palette generator →

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