#511B7C#511B7C

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

Color values

HEX#511B7C
RGBrgb(81, 27, 124)
HSLhsl(273, 64%, 30%)
HSVhsv(273, 78%, 49%)
CMYKcmyk(34.7%, 78.2%, 0%, 51.4%)
CIE-LABlab(23.63, 42.88, -44.29)
CIE-LCHlch(23.63, 61.65, 314.07°)
OKLaboklab(36.1% 0.0884 -0.1261)
OKLCHoklch(36.1% 0.154 305)
XYZxyz(7.4225, 3.9885, 19.4437)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B7C #467C1B
analogous
#211B7C #511B7C #7C1B77
triadic
#511B7C #7C511B #1B7C51
tetradic
#511B7C #7C211B #467C1B #1B777C
square
#511B7C #7C211B #467C1B #1B777C
split-complementary
#511B7C #777C1B #1B7C21
monochromatic
#100519 #30104A #511B7C #7226AE #913DD5

Accessibility & contrast

On white

11.68
#511B7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511B7C
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B7C#FFFFFF#000000##FFFFFF
##511B7C1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511b7c;
/* rgb */ color: rgb(81, 27, 124);
/* oklch */ color: oklch(36.1% 0.154 305.0);
Tailwind
colors: {
  custom: {
    50: '#865ea3',
    500: '#511b7c',
    950: '#000000',
  },
}
SCSS
$custom: #511b7c;
$custom-light: #865ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#511b7c",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 124
  },
  "hsl": {
    "h": 273.402,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.36099,
    "c": 0.15399,
    "h": 305
  },
  "luminance": 0.03988
}

Semantic roles & 50–950 ramp

primary
#511B7C
secondary
#73B043
accent
#E7418A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #511B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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