#511D81#511D81

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

Color values

HEX#511D81
RGBrgb(81, 29, 129)
HSLhsl(271, 63%, 31%)
HSVhsv(271, 78%, 51%)
CMYKcmyk(37.2%, 77.5%, 0%, 49.4%)
CIE-LABlab(24.36, 43.25, -46.27)
CIE-LCHlch(24.36, 63.33, 313.07°)
OKLaboklab(36.74% 0.0853 -0.1319)
OKLCHoklch(36.74% 0.157 302.9)
XYZxyz(7.7942, 4.2130, 21.1672)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D81 #4D811D
analogous
#1F1D81 #511D81 #811D7F
triadic
#511D81 #81511D #1D8151
tetradic
#511D81 #811F1D #4D811D #1D7F81
square
#511D81 #811F1D #4D811D #1D7F81
split-complementary
#511D81 #7F811D #1D811F
monochromatic
#12071D #32124F #511D81 #7028B3 #8F44D5

Accessibility & contrast

On white

11.40
#511D81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511D81
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D81#FFFFFF#000000##FFFFFF
##511D811.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003984
Deuteranopia (green-blind)
#003A7F
Tritanopia (blue-blind)
#47364E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #511d81;
/* rgb */ color: rgb(81, 29, 129);
/* oklch */ color: oklch(36.7% 0.157 302.9);
Tailwind
colors: {
  custom: {
    50: '#875fa6',
    500: '#511d81',
    950: '#000000',
  },
}
SCSS
$custom: #511d81;
$custom-light: #875fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#511d81",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 129
  },
  "hsl": {
    "h": 271.2,
    "s": 63.291,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36744,
    "c": 0.15708,
    "h": 302.9
  },
  "luminance": 0.04213
}

Semantic roles & 50–950 ramp

primary
#511D81
secondary
#7BB446
accent
#E64191
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #511D81

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

Preview Lab → · Contrast checker → · Palette generator →

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