#511A8B#511A8B

#511A8B is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.171 H 299.9°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#511A8B
RGBrgb(81, 26, 139)
HSLhsl(269, 68%, 32%)
HSVhsv(269, 81%, 55%)
CMYKcmyk(41.7%, 81.3%, 0%, 45.5%)
CIE-LABlab(24.80, 47.03, -51.82)
CIE-LCHlch(24.80, 69.98, 312.23°)
OKLaboklab(37.33% 0.0852 -0.1482)
OKLCHoklch(37.33% 0.171 299.9)
XYZxyz(8.4218, 4.3521, 24.8174)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A8B #548B1A
analogous
#1A1B8B #511A8B #8A1A8B
triadic
#511A8B #8B511A #1A8B51
tetradic
#511A8B #8B1A1B #548B1A #1A8B8A
square
#511A8B #8B1A1B #548B1A #1A8B8A
split-complementary
#511A8B #8B8A1A #1B8B1A
monochromatic
#150724 #331057 #511A8B #6F24BF #8E43DC

Accessibility & contrast

On white

11.23
#511A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#511A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511A8B
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A8B#FFFFFF#000000##FFFFFF
##511A8B1.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003A89
Tritanopia (blue-blind)
#433953
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #511a8b;
/* rgb */ color: rgb(81, 26, 139);
/* oklch */ color: oklch(37.3% 0.171 299.9);
Tailwind
colors: {
  custom: {
    50: '#885eae',
    500: '#511a8b',
    950: '#000000',
  },
}
SCSS
$custom: #511a8b;
$custom-light: #885eae;
$custom-dark: #000000;
JSON
{
  "hex": "#511a8b",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 139
  },
  "hsl": {
    "h": 269.204,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37325,
    "c": 0.17093,
    "h": 299.9
  },
  "luminance": 0.04352
}

Semantic roles & 50–950 ramp

primary
#511A8B
secondary
#82BD44
accent
#EB3C96
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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