#511E88#511E88

#511E88 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.164 H 300.3°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#511E88
RGBrgb(81, 30, 136)
HSLhsl(269, 64%, 33%)
HSVhsv(269, 78%, 53%)
CMYKcmyk(40.4%, 77.9%, 0%, 46.7%)
CIE-LABlab(25.12, 44.58, -49.42)
CIE-LCHlch(25.12, 66.56, 312.05°)
OKLaboklab(37.47% 0.0826 -0.1412)
OKLCHoklch(37.47% 0.164 300.3)
XYZxyz(8.3004, 4.4554, 23.7104)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E88 #55881E
analogous
#1E2088 #511E88 #861E88
triadic
#511E88 #88511E #1E8851
tetradic
#511E88 #881E20 #55881E #1E8886
square
#511E88 #881E20 #55881E #1E8886
split-complementary
#511E88 #88861E #20881E
monochromatic
#150824 #331356 #511E88 #6F29BA #8E49D7

Accessibility & contrast

On white

11.11
#511E88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#511E88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511E88
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E88#FFFFFF#000000##FFFFFF
##511E881.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8B
Deuteranopia (green-blind)
#003B86
Tritanopia (blue-blind)
#443A52
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #511e88;
/* rgb */ color: rgb(81, 30, 136);
/* oklch */ color: oklch(37.5% 0.164 300.3);
Tailwind
colors: {
  custom: {
    50: '#8860ac',
    500: '#511e88',
    950: '#000000',
  },
}
SCSS
$custom: #511e88;
$custom-light: #8860ac;
$custom-dark: #000000;
JSON
{
  "hex": "#511e88",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 136
  },
  "hsl": {
    "h": 268.868,
    "s": 63.855,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37466,
    "c": 0.16357,
    "h": 300.3
  },
  "luminance": 0.04455
}

Semantic roles & 50–950 ramp

primary
#511E88
secondary
#83B949
accent
#E74197
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511E88

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

Preview Lab → · Contrast checker → · Palette generator →

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