#511C8A#511C8A

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

Color values

HEX#511C8A
RGBrgb(81, 28, 138)
HSLhsl(269, 66%, 33%)
HSVhsv(269, 80%, 54%)
CMYKcmyk(41.3%, 79.7%, 0%, 45.9%)
CIE-LABlab(25.00, 45.96, -50.88)
CIE-LCHlch(25.00, 68.56, 312.09°)
OKLaboklab(37.43% 0.0838 -0.1454)
OKLCHoklch(37.43% 0.168 299.9)
XYZxyz(8.3949, 4.4147, 24.4497)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C8A #558A1C
analogous
#1C1E8A #511C8A #881C8A
triadic
#511C8A #8A511C #1C8A51
tetradic
#511C8A #8A1C1E #558A1C #1C8A88
square
#511C8A #8A1C1E #558A1C #1C8A88
split-complementary
#511C8A #8A881C #1E8A1C
monochromatic
#150724 #331257 #511C8A #6F26BD #8E47DA

Accessibility & contrast

On white

11.15
#511C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511C8A
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C8A#FFFFFF#000000##FFFFFF
##511C8A1.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8D
Deuteranopia (green-blind)
#003A88
Tritanopia (blue-blind)
#443A53
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #511c8a;
/* rgb */ color: rgb(81, 28, 138);
/* oklch */ color: oklch(37.4% 0.168 299.9);
Tailwind
colors: {
  custom: {
    50: '#885fad',
    500: '#511c8a',
    950: '#000000',
  },
}
SCSS
$custom: #511c8a;
$custom-light: #885fad;
$custom-dark: #000000;
JSON
{
  "hex": "#511c8a",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 138
  },
  "hsl": {
    "h": 268.909,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37432,
    "c": 0.16786,
    "h": 299.9
  },
  "luminance": 0.04415
}

Semantic roles & 50–950 ramp

primary
#511C8A
secondary
#83BB46
accent
#E93F97
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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