#511A8E#511A8E

#511A8E is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.6% C 0.174 H 298.9°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#511A8E
RGBrgb(81, 26, 142)
HSLhsl(268, 69%, 33%)
HSVhsv(268, 82%, 56%)
CMYKcmyk(43%, 81.7%, 0%, 44.3%)
CIE-LABlab(25.08, 47.79, -53.23)
CIE-LCHlch(25.08, 71.54, 311.91°)
OKLaboklab(37.6% 0.0842 -0.1524)
OKLCHoklch(37.6% 0.174 298.9)
XYZxyz(8.6440, 4.4410, 25.9877)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A8E #578E1A
analogous
#1A1D8E #511A8E #8B1A8E
triadic
#511A8E #8E511A #1A8E51
tetradic
#511A8E #8E1A1D #578E1A #1A8E8B
square
#511A8E #8E1A1D #578E1A #1A8E8B
split-complementary
#511A8E #8E8B1A #1D8E1A
monochromatic
#160727 #33115A #511A8E #6F23C2 #8D45DD

Accessibility & contrast

On white

11.12
#511A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511A8E
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A8E#FFFFFF#000000##FFFFFF
##511A8E1.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#003A8C
Tritanopia (blue-blind)
#423B54
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #511a8e;
/* rgb */ color: rgb(81, 26, 142);
/* oklch */ color: oklch(37.6% 0.174 298.9);
Tailwind
colors: {
  custom: {
    50: '#885eb0',
    500: '#511a8e',
    950: '#000000',
  },
}
SCSS
$custom: #511a8e;
$custom-light: #885eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#511a8e",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 142
  },
  "hsl": {
    "h": 268.448,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37601,
    "c": 0.17408,
    "h": 298.9
  },
  "luminance": 0.04441
}

Semantic roles & 50–950 ramp

primary
#511A8E
secondary
#85BE45
accent
#EC3C98
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #511A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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