#511A72#511A72

#511A72 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.145 H 309.3°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#511A72
RGBrgb(81, 26, 114)
HSLhsl(278, 63%, 27%)
HSVhsv(278, 77%, 45%)
CMYKcmyk(28.9%, 77.2%, 0%, 55.3%)
CIE-LABlab(22.66, 40.90, -39.47)
CIE-LCHlch(22.66, 56.84, 316.02°)
OKLaboklab(35.16% 0.0915 -0.1119)
OKLCHoklch(35.16% 0.145 309.3)
XYZxyz(6.7994, 3.7032, 16.2729)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A72 #3B721A
analogous
#251A72 #511A72 #721A67
triadic
#511A72 #72511A #1A7251
tetradic
#511A72 #72251A #3B721A #1A6772
square
#511A72 #72251A #3B721A #1A6772
split-complementary
#511A72 #67721A #1A7225
monochromatic
#120619 #2E0F40 #511A72 #7425A4 #9735D1

Accessibility & contrast

On white

12.06
#511A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#511A72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511A72
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A72#FFFFFF#000000##FFFFFF
##511A721.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003474
Deuteranopia (green-blind)
#023770
Tritanopia (blue-blind)
#4C2F45
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #511a72;
/* rgb */ color: rgb(81, 26, 114);
/* oklch */ color: oklch(35.2% 0.145 309.3);
Tailwind
colors: {
  custom: {
    50: '#865d9b',
    500: '#511a72',
    950: '#000000',
  },
}
SCSS
$custom: #511a72;
$custom-light: #865d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#511a72",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 114
  },
  "hsl": {
    "h": 277.5,
    "s": 62.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.3516,
    "c": 0.14458,
    "h": 309.3
  },
  "luminance": 0.03703
}

Semantic roles & 50–950 ramp

primary
#511A72
secondary
#67A741
accent
#E6427F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #511A72

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

Preview Lab → · Contrast checker → · Palette generator →

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