#511B80#511B80

#511B80 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.158 H 303.5°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#511B80
RGBrgb(81, 27, 128)
HSLhsl(272, 65%, 30%)
HSVhsv(272, 79%, 50%)
CMYKcmyk(36.7%, 78.9%, 0%, 49.8%)
CIE-LABlab(23.97, 43.87, -46.27)
CIE-LCHlch(23.97, 63.77, 313.47°)
OKLaboklab(36.44% 0.0874 -0.1319)
OKLCHoklch(36.44% 0.158 303.5)
XYZxyz(7.6806, 4.0917, 20.8030)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B80 #4A801B
analogous
#1E1B80 #511B80 #801B7C
triadic
#511B80 #80511B #1B8051
tetradic
#511B80 #801E1B #4A801B #1B7C80
square
#511B80 #801E1B #4A801B #1B7C80
split-complementary
#511B80 #7C801B #1B801E
monochromatic
#11061B #31104D #511B80 #7126B3 #903FD6

Accessibility & contrast

On white

11.55
#511B80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#511B80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B80
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B80#FFFFFF#000000##FFFFFF
##511B801.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003883
Deuteranopia (green-blind)
#00397E
Tritanopia (blue-blind)
#47354D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #511b80;
/* rgb */ color: rgb(81, 27, 128);
/* oklch */ color: oklch(36.4% 0.158 303.5);
Tailwind
colors: {
  custom: {
    50: '#875ea6',
    500: '#511b80',
    950: '#000000',
  },
}
SCSS
$custom: #511b80;
$custom-light: #875ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#511b80",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 128
  },
  "hsl": {
    "h": 272.079,
    "s": 65.161,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36443,
    "c": 0.15825,
    "h": 303.5
  },
  "luminance": 0.04092
}

Semantic roles & 50–950 ramp

primary
#511B80
secondary
#77B443
accent
#E8408E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #511B80

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

Preview Lab → · Contrast checker → · Palette generator →

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