#511C88#511C88

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

Color values

HEX#511C88
RGBrgb(81, 28, 136)
HSLhsl(269, 66%, 32%)
HSVhsv(269, 79%, 53%)
CMYKcmyk(40.4%, 79.4%, 0%, 46.7%)
CIE-LABlab(24.82, 45.45, -49.92)
CIE-LCHlch(24.82, 67.51, 312.32°)
OKLaboklab(37.25% 0.0844 -0.1426)
OKLCHoklch(37.25% 0.166 300.6)
XYZxyz(8.2514, 4.3573, 23.6941)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C88 #53881C
analogous
#1C1D88 #511C88 #871C88
triadic
#511C88 #88511C #1C8851
tetradic
#511C88 #881C1D #53881C #1C8887
square
#511C88 #881C1D #53881C #1C8887
split-complementary
#511C88 #88871C #1D881C
monochromatic
#150722 #331255 #511C88 #6F26BB #8E46D9

Accessibility & contrast

On white

11.22
#511C88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511C88
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C88#FFFFFF#000000##FFFFFF
##511C881.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8B
Deuteranopia (green-blind)
#003A86
Tritanopia (blue-blind)
#443951
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #511c88;
/* rgb */ color: rgb(81, 28, 136);
/* oklch */ color: oklch(37.3% 0.166 300.6);
Tailwind
colors: {
  custom: {
    50: '#885fac',
    500: '#511c88',
    950: '#000000',
  },
}
SCSS
$custom: #511c88;
$custom-light: #885fac;
$custom-dark: #000000;
JSON
{
  "hex": "#511c88",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 136
  },
  "hsl": {
    "h": 269.444,
    "s": 65.854,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37253,
    "c": 0.16572,
    "h": 300.6
  },
  "luminance": 0.04357
}

Semantic roles & 50–950 ramp

primary
#511C88
secondary
#81BA45
accent
#E93F95
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511C88

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

Preview Lab → · Contrast checker → · Palette generator →

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