#511A8F#511A8F

#511A8F is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.175 H 298.6°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#511A8F
RGBrgb(81, 26, 143)
HSLhsl(268, 69%, 33%)
HSVhsv(268, 82%, 56%)
CMYKcmyk(43.4%, 81.8%, 0%, 43.9%)
CIE-LABlab(25.17, 48.04, -53.70)
CIE-LCHlch(25.17, 72.05, 311.81°)
OKLaboklab(37.69% 0.0839 -0.1537)
OKLCHoklch(37.69% 0.175 298.6)
XYZxyz(8.7194, 4.4712, 26.3849)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A8F #588F1A
analogous
#1A1D8F #511A8F #8B1A8F
triadic
#511A8F #8F511A #1A8F51
tetradic
#511A8F #8F1A1D #588F1A #1A8F8B
square
#511A8F #8F1A1D #588F1A #1A8F8B
split-complementary
#511A8F #8F8B1A #1D8F1A
monochromatic
#160727 #34115B #511A8F #6E23C3 #8D46DD

Accessibility & contrast

On white

11.09
#511A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511A8F
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A8F#FFFFFF#000000##FFFFFF
##511A8F1.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#003A8D
Tritanopia (blue-blind)
#413B55
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #511a8f;
/* rgb */ color: rgb(81, 26, 143);
/* oklch */ color: oklch(37.7% 0.175 298.6);
Tailwind
colors: {
  custom: {
    50: '#895eb1',
    500: '#511a8f',
    950: '#000000',
  },
}
SCSS
$custom: #511a8f;
$custom-light: #895eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#511a8f",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 143
  },
  "hsl": {
    "h": 268.205,
    "s": 69.231,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37694,
    "c": 0.17513,
    "h": 298.6
  },
  "luminance": 0.04471
}

Semantic roles & 50–950 ramp

primary
#511A8F
secondary
#86BF46
accent
#EC3C99
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #511A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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