#511A81#511A81

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

Color values

HEX#511A81
RGBrgb(81, 26, 129)
HSLhsl(272, 66%, 30%)
HSVhsv(272, 80%, 51%)
CMYKcmyk(37.2%, 79.8%, 0%, 49.4%)
CIE-LABlab(23.91, 44.54, -47.00)
CIE-LCHlch(23.91, 64.76, 313.46°)
OKLaboklab(36.43% 0.0881 -0.134)
OKLCHoklch(36.43% 0.16 303.3)
XYZxyz(7.7242, 4.0731, 21.1439)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A81 #4A811A
analogous
#1D1A81 #511A81 #811A7D
triadic
#511A81 #81511A #1A8151
tetradic
#511A81 #811D1A #4A811A #1A7D81
square
#511A81 #811D1A #4A811A #1A7D81
split-complementary
#511A81 #7D811A #1A811D
monochromatic
#11051B #31104E #511A81 #7124B4 #903DD8

Accessibility & contrast

On white

11.57
#511A81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#511A81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511A81
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A81#FFFFFF#000000##FFFFFF
##511A811.0011.571.8111.57
#FFFFFF11.571.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511a81;
/* rgb */ color: rgb(81, 26, 129);
/* oklch */ color: oklch(36.4% 0.160 303.3);
Tailwind
colors: {
  custom: {
    50: '#875da6',
    500: '#511a81',
    950: '#000000',
  },
}
SCSS
$custom: #511a81;
$custom-light: #875da6;
$custom-dark: #000000;
JSON
{
  "hex": "#511a81",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 129
  },
  "hsl": {
    "h": 272.039,
    "s": 66.452,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36427,
    "c": 0.16039,
    "h": 303.3
  },
  "luminance": 0.04073
}

Semantic roles & 50–950 ramp

primary
#511A81
secondary
#77B542
accent
#E93E8E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #511A81

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

Preview Lab → · Contrast checker → · Palette generator →

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