#511D7F#511D7F

#511D7F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.155 H 303.6°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#511D7F
RGBrgb(81, 29, 127)
HSLhsl(272, 63%, 31%)
HSVhsv(272, 77%, 50%)
CMYKcmyk(36.2%, 77.2%, 0%, 50.2%)
CIE-LABlab(24.19, 42.74, -45.28)
CIE-LCHlch(24.19, 62.27, 313.35°)
OKLaboklab(36.57% 0.0858 -0.129)
OKLCHoklch(36.57% 0.155 303.6)
XYZxyz(7.6626, 4.1604, 20.4739)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D7F #4B7F1D
analogous
#201D7F #511D7F #7F1D7C
triadic
#511D7F #7F511D #1D7F51
tetradic
#511D7F #7F201D #4B7F1D #1D7C7F
square
#511D7F #7F201D #4B7F1D #1D7C7F
split-complementary
#511D7F #7C7F1D #1D7F20
monochromatic
#11061B #31124D #511D7F #7128B1 #9042D4

Accessibility & contrast

On white

11.46
#511D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#511D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511D7F
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D7F#FFFFFF#000000##FFFFFF
##511D7F1.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#00397D
Tritanopia (blue-blind)
#48364D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #511d7f;
/* rgb */ color: rgb(81, 29, 127);
/* oklch */ color: oklch(36.6% 0.155 303.6);
Tailwind
colors: {
  custom: {
    50: '#875fa5',
    500: '#511d7f',
    950: '#000000',
  },
}
SCSS
$custom: #511d7f;
$custom-light: #875fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#511d7f",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 127
  },
  "hsl": {
    "h": 271.837,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36573,
    "c": 0.15491,
    "h": 303.6
  },
  "luminance": 0.0416
}

Semantic roles & 50–950 ramp

primary
#511D7F
secondary
#79B245
accent
#E6428F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #511D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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