#511A8D#511A8D

#511A8D is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.5% C 0.173 H 299.2°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#511A8D
RGBrgb(81, 26, 141)
HSLhsl(269, 69%, 33%)
HSVhsv(269, 82%, 55%)
CMYKcmyk(42.6%, 81.6%, 0%, 44.7%)
CIE-LABlab(24.99, 47.54, -52.76)
CIE-LCHlch(24.99, 71.02, 312.02°)
OKLaboklab(37.51% 0.0845 -0.151)
OKLCHoklch(37.51% 0.173 299.2)
XYZxyz(8.5692, 4.4111, 25.5941)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A8D #568D1A
analogous
#1A1C8D #511A8D #8B1A8D
triadic
#511A8D #8D511A #1A8D51
tetradic
#511A8D #8D1A1C #568D1A #1A8D8B
square
#511A8D #8D1A1C #568D1A #1A8D8B
split-complementary
#511A8D #8D8B1A #1C8D1A
monochromatic
#160726 #331059 #511A8D #6F24C1 #8D45DD

Accessibility & contrast

On white

11.16
#511A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#511A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511A8D
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A8D#FFFFFF#000000##FFFFFF
##511A8D1.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#003A8B
Tritanopia (blue-blind)
#423A54
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #511a8d;
/* rgb */ color: rgb(81, 26, 141);
/* oklch */ color: oklch(37.5% 0.173 299.2);
Tailwind
colors: {
  custom: {
    50: '#885eaf',
    500: '#511a8d',
    950: '#000000',
  },
}
SCSS
$custom: #511a8d;
$custom-light: #885eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#511a8d",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 141
  },
  "hsl": {
    "h": 268.696,
    "s": 68.862,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37509,
    "c": 0.17303,
    "h": 299.2
  },
  "luminance": 0.04411
}

Semantic roles & 50–950 ramp

primary
#511A8D
secondary
#84BE45
accent
#EC3C98
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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