#511A84#511A84

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

Color values

HEX#511A84
RGBrgb(81, 26, 132)
HSLhsl(271, 67%, 31%)
HSVhsv(271, 80%, 52%)
CMYKcmyk(38.6%, 80.3%, 0%, 48.2%)
CIE-LABlab(24.17, 45.29, -48.46)
CIE-LCHlch(24.17, 66.33, 313.06°)
OKLaboklab(36.69% 0.0872 -0.1383)
OKLCHoklch(36.69% 0.164 302.2)
XYZxyz(7.9266, 4.1540, 22.2095)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A84 #4D841A
analogous
#1C1A84 #511A84 #841A82
triadic
#511A84 #84511A #1A8451
tetradic
#511A84 #841C1A #4D841A #1A8284
square
#511A84 #841C1A #4D841A #1A8284
split-complementary
#511A84 #82841A #1A841C
monochromatic
#12061E #321051 #511A84 #7024B7 #8F3FD9

Accessibility & contrast

On white

11.47
#511A84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511A84
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A84#FFFFFF#000000##FFFFFF
##511A841.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003987
Deuteranopia (green-blind)
#003982
Tritanopia (blue-blind)
#46364F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #511a84;
/* rgb */ color: rgb(81, 26, 132);
/* oklch */ color: oklch(36.7% 0.164 302.2);
Tailwind
colors: {
  custom: {
    50: '#875ea9',
    500: '#511a84',
    950: '#000000',
  },
}
SCSS
$custom: #511a84;
$custom-light: #875ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#511a84",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 132
  },
  "hsl": {
    "h": 271.132,
    "s": 67.089,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36692,
    "c": 0.16355,
    "h": 302.2
  },
  "luminance": 0.04154
}

Semantic roles & 50–950 ramp

primary
#511A84
secondary
#7BB842
accent
#EA3E91
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511A84

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

Preview Lab → · Contrast checker → · Palette generator →

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