#511D82#511D82

#511D82 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.158 H 302.5°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#511D82
RGBrgb(81, 29, 130)
HSLhsl(271, 64%, 31%)
HSVhsv(271, 78%, 51%)
CMYKcmyk(37.7%, 77.7%, 0%, 49%)
CIE-LABlab(24.45, 43.50, -46.76)
CIE-LCHlch(24.45, 63.86, 312.93°)
OKLaboklab(36.83% 0.085 -0.1334)
OKLCHoklch(36.83% 0.158 302.5)
XYZxyz(7.8610, 4.2397, 21.5190)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D82 #4E821D
analogous
#1E1D82 #511D82 #821D80
triadic
#511D82 #82511D #1D8251
tetradic
#511D82 #821E1D #4E821D #1D8082
square
#511D82 #821E1D #4E821D #1D8082
split-complementary
#511D82 #80821D #1D821E
monochromatic
#13071E #321250 #511D82 #7028B4 #8F44D5

Accessibility & contrast

On white

11.36
#511D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#511D82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511D82
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D82#FFFFFF#000000##FFFFFF
##511D821.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003985
Deuteranopia (green-blind)
#003A80
Tritanopia (blue-blind)
#47374E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #511d82;
/* rgb */ color: rgb(81, 29, 130);
/* oklch */ color: oklch(36.8% 0.158 302.5);
Tailwind
colors: {
  custom: {
    50: '#875fa7',
    500: '#511d82',
    950: '#000000',
  },
}
SCSS
$custom: #511d82;
$custom-light: #875fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#511d82",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 130
  },
  "hsl": {
    "h": 270.891,
    "s": 63.522,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36831,
    "c": 0.15817,
    "h": 302.5
  },
  "luminance": 0.0424
}

Semantic roles & 50–950 ramp

primary
#511D82
secondary
#7CB546
accent
#E74191
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511D82

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

Preview Lab → · Contrast checker → · Palette generator →

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