#511C82#511C82

#511C82 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.159 H 302.7°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#511C82
RGBrgb(81, 28, 130)
HSLhsl(271, 65%, 31%)
HSVhsv(271, 78%, 51%)
CMYKcmyk(37.7%, 78.5%, 0%, 49%)
CIE-LABlab(24.29, 43.94, -47.01)
CIE-LCHlch(24.29, 64.35, 313.07°)
OKLaboklab(36.72% 0.086 -0.1341)
OKLCHoklch(36.72% 0.159 302.7)
XYZxyz(7.8369, 4.1915, 21.5109)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C82 #4D821C
analogous
#1E1C82 #511C82 #821C80
triadic
#511C82 #82511C #1C8251
tetradic
#511C82 #821E1C #4D821C #1C8082
square
#511C82 #821E1C #4D821C #1C8082
split-complementary
#511C82 #80821C #1C821E
monochromatic
#12061D #321150 #511C82 #7027B4 #8F42D6

Accessibility & contrast

On white

11.42
#511C82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#511C82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511C82
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C82#FFFFFF#000000##FFFFFF
##511C821.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003985
Deuteranopia (green-blind)
#003980
Tritanopia (blue-blind)
#47364E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #511c82;
/* rgb */ color: rgb(81, 28, 130);
/* oklch */ color: oklch(36.7% 0.159 302.7);
Tailwind
colors: {
  custom: {
    50: '#875ea7',
    500: '#511c82',
    950: '#000000',
  },
}
SCSS
$custom: #511c82;
$custom-light: #875ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#511c82",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 130
  },
  "hsl": {
    "h": 271.176,
    "s": 64.557,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36723,
    "c": 0.15929,
    "h": 302.7
  },
  "luminance": 0.04192
}

Semantic roles & 50–950 ramp

primary
#511C82
secondary
#7BB544
accent
#E84091
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511C82

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

Preview Lab → · Contrast checker → · Palette generator →

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