#511C87#511C87

#511C87 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.165 H 300.9°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#511C87
RGBrgb(81, 28, 135)
HSLhsl(270, 66%, 32%)
HSVhsv(270, 79%, 53%)
CMYKcmyk(40%, 79.3%, 0%, 47.1%)
CIE-LABlab(24.73, 45.20, -49.44)
CIE-LCHlch(24.73, 66.98, 312.43°)
OKLaboklab(37.16% 0.0847 -0.1412)
OKLCHoklch(37.16% 0.165 300.9)
XYZxyz(8.1807, 4.3290, 23.3216)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C87 #52871C
analogous
#1C1C87 #511C87 #871C87
triadic
#511C87 #87511C #1C8751
tetradic
#511C87 #871C1C #52871C #1C8787
square
#511C87 #871C1C #52871C #1C8787
split-complementary
#511C87 #87871C #1C871C
monochromatic
#140722 #331154 #511C87 #6F27BA #8E45D8

Accessibility & contrast

On white

11.26
#511C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#511C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511C87
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C87#FFFFFF#000000##FFFFFF
##511C871.0011.261.8711.26
#FFFFFF11.261.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003A85
Tritanopia (blue-blind)
#453851
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #511c87;
/* rgb */ color: rgb(81, 28, 135);
/* oklch */ color: oklch(37.2% 0.165 300.9);
Tailwind
colors: {
  custom: {
    50: '#885fab',
    500: '#511c87',
    950: '#000000',
  },
}
SCSS
$custom: #511c87;
$custom-light: #885fab;
$custom-dark: #000000;
JSON
{
  "hex": "#511c87",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 135
  },
  "hsl": {
    "h": 269.72,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37163,
    "c": 0.16465,
    "h": 300.9
  },
  "luminance": 0.04329
}

Semantic roles & 50–950 ramp

primary
#511C87
secondary
#80BA45
accent
#E93F95
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511C87

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

Preview Lab → · Contrast checker → · Palette generator →

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