#511C7B#511C7B

#511C7B is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.152 H 305.3°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#511C7B
RGBrgb(81, 28, 123)
HSLhsl(273, 63%, 30%)
HSVhsv(273, 77%, 48%)
CMYKcmyk(34.1%, 77.2%, 0%, 51.8%)
CIE-LABlab(23.70, 42.20, -43.54)
CIE-LCHlch(23.70, 60.63, 314.10°)
OKLaboklab(36.12% 0.0876 -0.1239)
OKLCHoklch(36.12% 0.152 305.3)
XYZxyz(7.3829, 4.0099, 19.1201)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C7B #467B1C
analogous
#221C7B #511C7B #7B1C76
triadic
#511C7B #7B511C #1C7B51
tetradic
#511C7B #7B221C #467B1C #1C767B
square
#511C7B #7B221C #467B1C #1C767B
split-complementary
#511C7B #767B1C #1C7B22
monochromatic
#100619 #301149 #511C7B #7227AD #913ED3

Accessibility & contrast

On white

11.65
#511C7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#511C7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511C7B
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C7B#FFFFFF#000000##FFFFFF
##511C7B1.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#003979
Tritanopia (blue-blind)
#49334A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #511c7b;
/* rgb */ color: rgb(81, 28, 123);
/* oklch */ color: oklch(36.1% 0.152 305.3);
Tailwind
colors: {
  custom: {
    50: '#865ea2',
    500: '#511c7b',
    950: '#000000',
  },
}
SCSS
$custom: #511c7b;
$custom-light: #865ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#511c7b",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 123
  },
  "hsl": {
    "h": 273.474,
    "s": 62.914,
    "l": 29.608
  },
  "oklch": {
    "l": 0.36123,
    "c": 0.15175,
    "h": 305.3
  },
  "luminance": 0.0401
}

Semantic roles & 50–950 ramp

primary
#511C7B
secondary
#73AF44
accent
#E6428A
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #511C7B

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

Preview Lab → · Contrast checker → · Palette generator →

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