#511C89#511C89

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

Color values

HEX#511C89
RGBrgb(81, 28, 137)
HSLhsl(269, 66%, 32%)
HSVhsv(269, 80%, 54%)
CMYKcmyk(40.9%, 79.6%, 0%, 46.3%)
CIE-LABlab(24.91, 45.70, -50.40)
CIE-LCHlch(24.91, 68.04, 312.20°)
OKLaboklab(37.34% 0.0841 -0.144)
OKLCHoklch(37.34% 0.167 300.3)
XYZxyz(8.3228, 4.3859, 24.0701)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C89 #54891C
analogous
#1C1E89 #511C89 #871C89
triadic
#511C89 #89511C #1C8951
tetradic
#511C89 #891C1E #54891C #1C8987
square
#511C89 #891C1E #54891C #1C8987
split-complementary
#511C89 #89871C #1E891C
monochromatic
#150723 #331256 #511C89 #6F26BC #8E46D9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##511C89#FFFFFF#000000##FFFFFF
##511C891.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)
#003B8C
Deuteranopia (green-blind)
#003A87
Tritanopia (blue-blind)
#443952
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #511c89;
/* rgb */ color: rgb(81, 28, 137);
/* oklch */ color: oklch(37.3% 0.167 300.3);
Tailwind
colors: {
  custom: {
    50: '#885fac',
    500: '#511c89',
    950: '#000000',
  },
}
SCSS
$custom: #511c89;
$custom-light: #885fac;
$custom-dark: #000000;
JSON
{
  "hex": "#511c89",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 137
  },
  "hsl": {
    "h": 269.174,
    "s": 66.061,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37342,
    "c": 0.16679,
    "h": 300.3
  },
  "luminance": 0.04386
}

Semantic roles & 50–950 ramp

primary
#511C89
secondary
#82BB46
accent
#E93F96
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511C89

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

Preview Lab → · Contrast checker → · Palette generator →

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