#511E8C#511E8C

#511E8C is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.168 H 299.0°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#511E8C
RGBrgb(81, 30, 140)
HSLhsl(268, 65%, 33%)
HSVhsv(268, 79%, 55%)
CMYKcmyk(42.1%, 78.6%, 0%, 45.1%)
CIE-LABlab(25.48, 45.60, -51.34)
CIE-LCHlch(25.48, 68.67, 311.61°)
OKLaboklab(37.82% 0.0815 -0.1468)
OKLCHoklch(37.82% 0.168 299)
XYZxyz(8.5900, 4.5712, 25.2356)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E8C #598C1E
analogous
#1E228C #511E8C #881E8C
triadic
#511E8C #8C511E #1E8C51
tetradic
#511E8C #8C1E22 #598C1E #1E8C88
square
#511E8C #8C1E22 #598C1E #1E8C88
split-complementary
#511E8C #8C881E #228C1E
monochromatic
#170827 #34135A #511E8C #6E29BE #8D4CD9

Accessibility & contrast

On white

10.97
#511E8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#511E8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511E8C
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E8C#FFFFFF#000000##FFFFFF
##511E8C1.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#003B8A
Tritanopia (blue-blind)
#433B54
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #511e8c;
/* rgb */ color: rgb(81, 30, 140);
/* oklch */ color: oklch(37.8% 0.168 299.0);
Tailwind
colors: {
  custom: {
    50: '#8860af',
    500: '#511e8c',
    950: '#000000',
  },
}
SCSS
$custom: #511e8c;
$custom-light: #8860af;
$custom-dark: #000000;
JSON
{
  "hex": "#511e8c",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 140
  },
  "hsl": {
    "h": 267.818,
    "s": 64.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.37823,
    "c": 0.16793,
    "h": 299
  },
  "luminance": 0.04571
}

Semantic roles & 50–950 ramp

primary
#511E8C
secondary
#87BB4B
accent
#E8409A
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511E8C

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

Preview Lab → · Contrast checker → · Palette generator →

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