#511A82#511A82

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

Color values

HEX#511A82
RGBrgb(81, 26, 130)
HSLhsl(272, 67%, 31%)
HSVhsv(272, 80%, 51%)
CMYKcmyk(37.7%, 80%, 0%, 49%)
CIE-LABlab(24.00, 44.79, -47.49)
CIE-LCHlch(24.00, 65.28, 313.32°)
OKLaboklab(36.52% 0.0878 -0.1355)
OKLCHoklch(36.52% 0.161 302.9)
XYZxyz(7.7910, 4.0998, 21.4957)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A82 #4B821A
analogous
#1D1A82 #511A82 #821A7F
triadic
#511A82 #82511A #1A8251
tetradic
#511A82 #821D1A #4B821A #1A7F82
square
#511A82 #821D1A #4B821A #1A7F82
split-complementary
#511A82 #7F821A #1A821D
monochromatic
#11061C #31104F #511A82 #7124B5 #903ED8

Accessibility & contrast

On white

11.54
#511A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511A82
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A82#FFFFFF#000000##FFFFFF
##511A821.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003885
Deuteranopia (green-blind)
#003980
Tritanopia (blue-blind)
#47354E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #511a82;
/* rgb */ color: rgb(81, 26, 130);
/* oklch */ color: oklch(36.5% 0.161 302.9);
Tailwind
colors: {
  custom: {
    50: '#875da7',
    500: '#511a82',
    950: '#000000',
  },
}
SCSS
$custom: #511a82;
$custom-light: #875da7;
$custom-dark: #000000;
JSON
{
  "hex": "#511a82",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 130
  },
  "hsl": {
    "h": 271.731,
    "s": 66.667,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36515,
    "c": 0.16145,
    "h": 302.9
  },
  "luminance": 0.041
}

Semantic roles & 50–950 ramp

primary
#511A82
secondary
#79B642
accent
#EA3E8F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511A82

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

Preview Lab → · Contrast checker → · Palette generator →

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