#511C7A#511C7A

#511C7A is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.151 H 305.7°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#511C7A
RGBrgb(81, 28, 122)
HSLhsl(274, 63%, 29%)
HSVhsv(274, 77%, 48%)
CMYKcmyk(33.6%, 77%, 0%, 52.2%)
CIE-LABlab(23.62, 41.95, -43.04)
CIE-LCHlch(23.62, 60.10, 314.27°)
OKLaboklab(36.04% 0.0879 -0.1224)
OKLCHoklch(36.04% 0.151 305.7)
XYZxyz(7.3207, 3.9850, 18.7921)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C7A #457A1C
analogous
#221C7A #511C7A #7A1C74
triadic
#511C7A #7A511C #1C7A51
tetradic
#511C7A #7A221C #457A1C #1C747A
square
#511C7A #7A221C #457A1C #1C747A
split-complementary
#511C7A #747A1C #1C7A22
monochromatic
#110619 #301148 #511C7A #7227AC #923ED3

Accessibility & contrast

On white

11.69
#511C7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511C7A
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C7A#FFFFFF#000000##FFFFFF
##511C7A1.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#003878
Tritanopia (blue-blind)
#4A334A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #511c7a;
/* rgb */ color: rgb(81, 28, 122);
/* oklch */ color: oklch(36.0% 0.151 305.7);
Tailwind
colors: {
  custom: {
    50: '#865ea1',
    500: '#511c7a',
    950: '#000000',
  },
}
SCSS
$custom: #511c7a;
$custom-light: #865ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#511c7a",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 122
  },
  "hsl": {
    "h": 273.83,
    "s": 62.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.36039,
    "c": 0.15069,
    "h": 305.7
  },
  "luminance": 0.03985
}

Semantic roles & 50–950 ramp

primary
#511C7A
secondary
#72AE44
accent
#E64289
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #511C7A

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

Preview Lab → · Contrast checker → · Palette generator →

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