#511B8A#511B8A

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

Color values

HEX#511B8A
RGBrgb(81, 27, 138)
HSLhsl(269, 67%, 32%)
HSVhsv(269, 80%, 54%)
CMYKcmyk(41.3%, 80.4%, 0%, 45.9%)
CIE-LABlab(24.85, 46.37, -51.11)
CIE-LCHlch(24.85, 69.02, 312.22°)
OKLaboklab(37.33% 0.0847 -0.1461)
OKLCHoklch(37.33% 0.169 300.1)
XYZxyz(8.3716, 4.3681, 24.4419)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B8A #548A1B
analogous
#1B1D8A #511B8A #891B8A
triadic
#511B8A #8A511B #1B8A51
tetradic
#511B8A #8A1B1D #548A1B #1B8A89
square
#511B8A #8A1B1D #548A1B #1B8A89
split-complementary
#511B8A #8A891B #1D8A1B
monochromatic
#150724 #331157 #511B8A #6F25BD #8E45DB

Accessibility & contrast

On white

11.21
#511B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511B8A
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B8A#FFFFFF#000000##FFFFFF
##511B8A1.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511b8a;
/* rgb */ color: rgb(81, 27, 138);
/* oklch */ color: oklch(37.3% 0.169 300.1);
Tailwind
colors: {
  custom: {
    50: '#885ead',
    500: '#511b8a',
    950: '#000000',
  },
}
SCSS
$custom: #511b8a;
$custom-light: #885ead;
$custom-dark: #000000;
JSON
{
  "hex": "#511b8a",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 138
  },
  "hsl": {
    "h": 269.189,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37331,
    "c": 0.16888,
    "h": 300.1
  },
  "luminance": 0.04368
}

Semantic roles & 50–950 ramp

primary
#511B8A
secondary
#82BC45
accent
#EA3E96
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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