#511C80#511C80

#511C80 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.157 H 303.4°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#511C80
RGBrgb(81, 28, 128)
HSLhsl(272, 64%, 31%)
HSVhsv(272, 78%, 50%)
CMYKcmyk(36.7%, 78.1%, 0%, 49.8%)
CIE-LABlab(24.12, 43.44, -46.03)
CIE-LCHlch(24.12, 63.29, 313.34°)
OKLaboklab(36.55% 0.0865 -0.1312)
OKLCHoklch(36.55% 0.157 303.4)
XYZxyz(7.7040, 4.1384, 20.8108)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C80 #4B801C
analogous
#1F1C80 #511C80 #801C7D
triadic
#511C80 #80511C #1C8051
tetradic
#511C80 #801F1C #4B801C #1C7D80
square
#511C80 #801F1C #4B801C #1C7D80
split-complementary
#511C80 #7D801C #1C801F
monochromatic
#11061C #31114E #511C80 #7127B2 #9041D5

Accessibility & contrast

On white

11.49
#511C80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511C80
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C80#FFFFFF#000000##FFFFFF
##511C801.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.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: #511c80;
/* rgb */ color: rgb(81, 28, 128);
/* oklch */ color: oklch(36.5% 0.157 303.4);
Tailwind
colors: {
  custom: {
    50: '#875ea6',
    500: '#511c80',
    950: '#000000',
  },
}
SCSS
$custom: #511c80;
$custom-light: #875ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#511c80",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 128
  },
  "hsl": {
    "h": 271.8,
    "s": 64.103,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36549,
    "c": 0.15714,
    "h": 303.4
  },
  "luminance": 0.04138
}

Semantic roles & 50–950 ramp

primary
#511C80
secondary
#79B344
accent
#E7418F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #511C80

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

Preview Lab → · Contrast checker → · Palette generator →

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