#511D80#511D80

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

Color values

HEX#511D80
RGBrgb(81, 29, 128)
HSLhsl(272, 63%, 31%)
HSVhsv(272, 77%, 50%)
CMYKcmyk(36.7%, 77.3%, 0%, 49.8%)
CIE-LABlab(24.28, 43.00, -45.77)
CIE-LCHlch(24.28, 62.80, 313.21°)
OKLaboklab(36.66% 0.0855 -0.1305)
OKLCHoklch(36.66% 0.156 303.2)
XYZxyz(7.7281, 4.1866, 20.8188)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D80 #4C801D
analogous
#1F1D80 #511D80 #801D7D
triadic
#511D80 #80511D #1D8051
tetradic
#511D80 #801F1D #4C801D #1D7D80
square
#511D80 #801F1D #4C801D #1D7D80
split-complementary
#511D80 #7D801D #1D801F
monochromatic
#12061C #31124E #511D80 #7128B2 #8F43D4

Accessibility & contrast

On white

11.43
#511D80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511D80
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D80#FFFFFF#000000##FFFFFF
##511D801.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003983
Deuteranopia (green-blind)
#00397E
Tritanopia (blue-blind)
#47364D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #511d80;
/* rgb */ color: rgb(81, 29, 128);
/* oklch */ color: oklch(36.7% 0.156 303.2);
Tailwind
colors: {
  custom: {
    50: '#875fa6',
    500: '#511d80',
    950: '#000000',
  },
}
SCSS
$custom: #511d80;
$custom-light: #875fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#511d80",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 128
  },
  "hsl": {
    "h": 271.515,
    "s": 63.057,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36658,
    "c": 0.15599,
    "h": 303.2
  },
  "luminance": 0.04187
}

Semantic roles & 50–950 ramp

primary
#511D80
secondary
#7AB345
accent
#E64290
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #511D80

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

Preview Lab → · Contrast checker → · Palette generator →

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