#511A8A#511A8A

#511A8A is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.170 H 300.2°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#511A8A
RGBrgb(81, 26, 138)
HSLhsl(269, 68%, 32%)
HSVhsv(269, 81%, 54%)
CMYKcmyk(41.3%, 81.2%, 0%, 45.9%)
CIE-LABlab(24.71, 46.78, -51.34)
CIE-LCHlch(24.71, 69.46, 312.34°)
OKLaboklab(37.23% 0.0855 -0.1468)
OKLCHoklch(37.23% 0.17 300.2)
XYZxyz(8.3490, 4.3230, 24.4344)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A8A #538A1A
analogous
#1A1B8A #511A8A #891A8A
triadic
#511A8A #8A511A #1A8A51
tetradic
#511A8A #8A1A1B #538A1A #1A8A89
square
#511A8A #8A1A1B #538A1A #1A8A89
split-complementary
#511A8A #8A891A #1B8A1A
monochromatic
#150723 #331057 #511A8A #6F24BD #8E43DC

Accessibility & contrast

On white

11.26
#511A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#511A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511A8A
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A8A#FFFFFF#000000##FFFFFF
##511A8A1.0011.261.8611.26
#FFFFFF11.261.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8D
Deuteranopia (green-blind)
#003A88
Tritanopia (blue-blind)
#443952
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #511a8a;
/* rgb */ color: rgb(81, 26, 138);
/* oklch */ color: oklch(37.2% 0.170 300.2);
Tailwind
colors: {
  custom: {
    50: '#885ead',
    500: '#511a8a',
    950: '#000000',
  },
}
SCSS
$custom: #511a8a;
$custom-light: #885ead;
$custom-dark: #000000;
JSON
{
  "hex": "#511a8a",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 138
  },
  "hsl": {
    "h": 269.464,
    "s": 68.293,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37233,
    "c": 0.16987,
    "h": 300.2
  },
  "luminance": 0.04323
}

Semantic roles & 50–950 ramp

primary
#511A8A
secondary
#81BD43
accent
#EB3D95
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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