#511C74#511C74

#511C74 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.144 H 308.1°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#511C74
RGBrgb(81, 28, 116)
HSLhsl(276, 61%, 28%)
HSVhsv(276, 76%, 45%)
CMYKcmyk(30.2%, 75.9%, 0%, 54.5%)
CIE-LABlab(23.14, 40.49, -39.99)
CIE-LCHlch(23.14, 56.91, 315.35°)
OKLaboklab(35.55% 0.0891 -0.1135)
OKLCHoklch(35.55% 0.144 308.1)
XYZxyz(6.9603, 3.8409, 16.8943)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C74 #3F741C
analogous
#251C74 #511C74 #741C6B
triadic
#511C74 #74511C #1C7451
tetradic
#511C74 #74251C #3F741C #1C6B74
square
#511C74 #74251C #3F741C #1C6B74
split-complementary
#511C74 #6B741C #1C7425
monochromatic
#110619 #2F1043 #511C74 #7328A5 #943BD0

Accessibility & contrast

On white

11.88
#511C74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#511C74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511C74
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C74#FFFFFF#000000##FFFFFF
##511C741.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003577
Deuteranopia (green-blind)
#013872
Tritanopia (blue-blind)
#4B3146
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #511c74;
/* rgb */ color: rgb(81, 28, 116);
/* oklch */ color: oklch(35.5% 0.144 308.1);
Tailwind
colors: {
  custom: {
    50: '#865e9d',
    500: '#511c74',
    950: '#000000',
  },
}
SCSS
$custom: #511c74;
$custom-light: #865e9d;
$custom-dark: #000000;
JSON
{
  "hex": "#511c74",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 116
  },
  "hsl": {
    "h": 276.136,
    "s": 61.111,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35545,
    "c": 0.14423,
    "h": 308.1
  },
  "luminance": 0.03841
}

Semantic roles & 50–950 ramp

primary
#511C74
secondary
#6CA843
accent
#E44483
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #511C74

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

Preview Lab → · Contrast checker → · Palette generator →

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