#511D8A#511D8A

#511D8A is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.167 H 299.8°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#511D8A
RGBrgb(81, 29, 138)
HSLhsl(269, 65%, 33%)
HSVhsv(269, 79%, 54%)
CMYKcmyk(41.3%, 79%, 0%, 45.9%)
CIE-LABlab(25.15, 45.53, -50.63)
CIE-LCHlch(25.15, 68.09, 311.96°)
OKLaboklab(37.54% 0.0829 -0.1447)
OKLCHoklch(37.54% 0.167 299.8)
XYZxyz(8.4190, 4.4629, 24.4577)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D8A #568A1D
analogous
#1D208A #511D8A #871D8A
triadic
#511D8A #8A511D #1D8A51
tetradic
#511D8A #8A1D20 #568A1D #1D8A87
square
#511D8A #8A1D20 #568A1D #1D8A87
split-complementary
#511D8A #8A871D #208A1D
monochromatic
#160825 #331257 #511D8A #6F28BD #8D49D9

Accessibility & contrast

On white

11.10
#511D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#511D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511D8A
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D8A#FFFFFF#000000##FFFFFF
##511D8A1.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8D
Deuteranopia (green-blind)
#003B88
Tritanopia (blue-blind)
#433A53
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #511d8a;
/* rgb */ color: rgb(81, 29, 138);
/* oklch */ color: oklch(37.5% 0.167 299.8);
Tailwind
colors: {
  custom: {
    50: '#885fad',
    500: '#511d8a',
    950: '#000000',
  },
}
SCSS
$custom: #511d8a;
$custom-light: #885fad;
$custom-dark: #000000;
JSON
{
  "hex": "#511d8a",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 138
  },
  "hsl": {
    "h": 268.624,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37536,
    "c": 0.16682,
    "h": 299.8
  },
  "luminance": 0.04463
}

Semantic roles & 50–950 ramp

primary
#511D8A
secondary
#84BB48
accent
#E84098
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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