#511A7A#511A7A

#511A7A is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.153 H 305.9°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#511A7A
RGBrgb(81, 26, 122)
HSLhsl(274, 65%, 29%)
HSVhsv(274, 79%, 48%)
CMYKcmyk(33.6%, 78.7%, 0%, 52.2%)
CIE-LABlab(23.32, 42.83, -43.54)
CIE-LCHlch(23.32, 61.07, 314.53°)
OKLaboklab(35.82% 0.0898 -0.1239)
OKLCHoklch(35.82% 0.153 305.9)
XYZxyz(7.2748, 3.8933, 18.7768)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A7A #437A1A
analogous
#211A7A #511A7A #7A1A73
triadic
#511A7A #7A511A #1A7A51
tetradic
#511A7A #7A211A #437A1A #1A737A
square
#511A7A #7A211A #437A1A #1A737A
split-complementary
#511A7A #737A1A #1A7A21
monochromatic
#110519 #300F48 #511A7A #7225AC #9339D5

Accessibility & contrast

On white

11.81
#511A7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#511A7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511A7A
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A7A#FFFFFF#000000##FFFFFF
##511A7A1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#003878
Tritanopia (blue-blind)
#4A3249
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #511a7a;
/* rgb */ color: rgb(81, 26, 122);
/* oklch */ color: oklch(35.8% 0.153 305.9);
Tailwind
colors: {
  custom: {
    50: '#865da1',
    500: '#511a7a',
    950: '#000000',
  },
}
SCSS
$custom: #511a7a;
$custom-light: #865da1;
$custom-dark: #000000;
JSON
{
  "hex": "#511a7a",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 122
  },
  "hsl": {
    "h": 274.375,
    "s": 64.865,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35823,
    "c": 0.15301,
    "h": 305.9
  },
  "luminance": 0.03893
}

Semantic roles & 50–950 ramp

primary
#511A7A
secondary
#70AE41
accent
#E84088
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #511A7A

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

Preview Lab → · Contrast checker → · Palette generator →

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