#511A8C#511A8C

#511A8C is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.172 H 299.6°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#511A8C
RGBrgb(81, 26, 140)
HSLhsl(269, 69%, 33%)
HSVhsv(269, 81%, 55%)
CMYKcmyk(42.1%, 81.4%, 0%, 45.1%)
CIE-LABlab(24.89, 47.28, -52.29)
CIE-LCHlch(24.89, 70.50, 312.12°)
OKLaboklab(37.42% 0.0849 -0.1496)
OKLCHoklch(37.42% 0.172 299.6)
XYZxyz(8.4952, 4.3815, 25.2040)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A8C #558C1A
analogous
#1A1C8C #511A8C #8A1A8C
triadic
#511A8C #8C511A #1A8C51
tetradic
#511A8C #8C1A1C #558C1A #1A8C8A
square
#511A8C #8C1A1C #558C1A #1A8C8A
split-complementary
#511A8C #8C8A1A #1C8C1A
monochromatic
#150725 #331058 #511A8C #6F24C0 #8E44DC

Accessibility & contrast

On white

11.19
#511A8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#511A8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511A8C
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A8C#FFFFFF#000000##FFFFFF
##511A8C1.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#003A8A
Tritanopia (blue-blind)
#433A53
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #511a8c;
/* rgb */ color: rgb(81, 26, 140);
/* oklch */ color: oklch(37.4% 0.172 299.6);
Tailwind
colors: {
  custom: {
    50: '#885eaf',
    500: '#511a8c',
    950: '#000000',
  },
}
SCSS
$custom: #511a8c;
$custom-light: #885eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#511a8c",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 140
  },
  "hsl": {
    "h": 268.947,
    "s": 68.675,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37416,
    "c": 0.17198,
    "h": 299.6
  },
  "luminance": 0.04382
}

Semantic roles & 50–950 ramp

primary
#511A8C
secondary
#83BE44
accent
#EC3C97
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511A8C

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

Preview Lab → · Contrast checker → · Palette generator →

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