#511E8A#511E8A

#511E8A is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.166 H 299.7°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#511E8A
RGBrgb(81, 30, 138)
HSLhsl(268, 64%, 33%)
HSVhsv(268, 78%, 54%)
CMYKcmyk(41.3%, 78.3%, 0%, 45.9%)
CIE-LABlab(25.30, 45.09, -50.38)
CIE-LCHlch(25.30, 67.61, 311.83°)
OKLaboklab(37.64% 0.0821 -0.144)
OKLCHoklch(37.64% 0.166 299.7)
XYZxyz(8.4439, 4.5128, 24.4660)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E8A #578A1E
analogous
#1E218A #511E8A #871E8A
triadic
#511E8A #8A511E #1E8A51
tetradic
#511E8A #8A1E21 #578A1E #1E8A87
square
#511E8A #8A1E21 #578A1E #1E8A87
split-complementary
#511E8A #8A871E #218A1E
monochromatic
#160825 #331358 #511E8A #6F29BC #8D4BD8

Accessibility & contrast

On white

11.04
#511E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#511E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511E8A
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E8A#FFFFFF#000000##FFFFFF
##511E8A1.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511e8a;
/* rgb */ color: rgb(81, 30, 138);
/* oklch */ color: oklch(37.6% 0.166 299.7);
Tailwind
colors: {
  custom: {
    50: '#8860ad',
    500: '#511e8a',
    950: '#000000',
  },
}
SCSS
$custom: #511e8a;
$custom-light: #8860ad;
$custom-dark: #000000;
JSON
{
  "hex": "#511e8a",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 138
  },
  "hsl": {
    "h": 268.333,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37643,
    "c": 0.16576,
    "h": 299.7
  },
  "luminance": 0.04513
}

Semantic roles & 50–950 ramp

primary
#511E8A
secondary
#85BA4A
accent
#E74199
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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